summaryrefslogtreecommitdiffstats
path: root/pyload/database/Backend.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-17 17:28:58 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-17 17:28:58 +0200
commit938b7e6141e2895c7d41b0e8ef4b9416912e2e9e (patch)
tree6ceef0718139a13ced3fb607634fa60fc81212c4 /pyload/database/Backend.py
parentSpare code cosmetics (3) (diff)
downloadpyload-938b7e6141e2895c7d41b0e8ef4b9416912e2e9e.tar.xz
Spare code cosmetics (4)
Diffstat (limited to 'pyload/database/Backend.py')
-rw-r--r--pyload/database/Backend.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyload/database/Backend.py b/pyload/database/Backend.py
index 45a5c7361..cfdee058e 100644
--- a/pyload/database/Backend.py
+++ b/pyload/database/Backend.py
@@ -18,6 +18,7 @@ except Exception:
DB_VERSION = 4
+
class style(object):
db = None
@@ -59,6 +60,7 @@ class style(object):
return cls.db.async(f, *args, **kwargs)
return x
+
class DatabaseJob(object):
def __init__(self, f, *args, **kwargs):
@@ -106,6 +108,7 @@ class DatabaseJob(object):
def wait(self):
self.done.wait()
+
class DatabaseBackend(Thread):
subs = []