summaryrefslogtreecommitdiffstats
path: root/module/database/DatabaseBackend.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-14 02:33:52 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-14 02:33:52 +0200
commit0aa95087ea8f8788499c0beaa12f39642fd204ab (patch)
tree32f51acc8a3eb447862b2bedd4a6f0d2cddb134d /module/database/DatabaseBackend.py
parent[Locale] templates updated (diff)
downloadpyload-0aa95087ea8f8788499c0beaa12f39642fd204ab.tar.xz
Fix class definition
Diffstat (limited to 'module/database/DatabaseBackend.py')
-rw-r--r--module/database/DatabaseBackend.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/database/DatabaseBackend.py b/module/database/DatabaseBackend.py
index a7e9c8849..6b2099736 100644
--- a/module/database/DatabaseBackend.py
+++ b/module/database/DatabaseBackend.py
@@ -34,7 +34,7 @@ except:
DB_VERSION = 4
-class style():
+class style:
db = None
@classmethod
@@ -65,7 +65,7 @@ class style():
return cls.db.async(f, *args, **kwargs)
return x
-class DatabaseJob():
+class DatabaseJob:
def __init__(self, f, *args, **kwargs):
self.done = Event()
@@ -309,7 +309,7 @@ if __name__ == "__main__":
db = DatabaseBackend()
db.setup()
- class Test():
+ class Test:
@style.queue
def insert(db):
c = db.createCursor()