diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-17 17:28:58 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-17 17:28:58 +0200 |
commit | 938b7e6141e2895c7d41b0e8ef4b9416912e2e9e (patch) | |
tree | 6ceef0718139a13ced3fb607634fa60fc81212c4 /pyload/database | |
parent | Spare code cosmetics (3) (diff) | |
download | pyload-938b7e6141e2895c7d41b0e8ef4b9416912e2e9e.tar.xz |
Spare code cosmetics (4)
Diffstat (limited to 'pyload/database')
-rw-r--r-- | pyload/database/Backend.py | 3 | ||||
-rw-r--r-- | pyload/database/Storage.py | 1 | ||||
-rw-r--r-- | pyload/database/User.py | 1 |
3 files changed, 5 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 = [] diff --git a/pyload/database/Storage.py b/pyload/database/Storage.py index a1dfb7e9f..45ad18b2d 100644 --- a/pyload/database/Storage.py +++ b/pyload/database/Storage.py @@ -4,6 +4,7 @@ from pyload.database import style from pyload.database import DatabaseBackend + class StorageMethods(object): diff --git a/pyload/database/User.py b/pyload/database/User.py index 94f70d499..374570fb7 100644 --- a/pyload/database/User.py +++ b/pyload/database/User.py @@ -6,6 +6,7 @@ import random from pyload.database import DatabaseBackend, style + class UserMethods(object): |