summaryrefslogtreecommitdiffstats
path: root/pyload/database/Backend.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/database/Backend.py')
-rw-r--r--pyload/database/Backend.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pyload/database/Backend.py b/pyload/database/Backend.py
index 45a5c7361..b0e94711e 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):
@@ -79,7 +81,7 @@ class DatabaseJob(object):
from os.path import basename
frame = self.frame.f_back
output = ""
- for i in range(5):
+ for _i in range(5):
output += "\t%s:%s, %s\n" % (basename(frame.f_code.co_filename), frame.f_lineno, frame.f_code.co_name)
frame = frame.f_back
del frame
@@ -106,6 +108,7 @@ class DatabaseJob(object):
def wait(self):
self.done.wait()
+
class DatabaseBackend(Thread):
subs = []