summaryrefslogtreecommitdiffstats
path: root/module/database
diff options
context:
space:
mode:
Diffstat (limited to 'module/database')
-rw-r--r--module/database/DatabaseBackend.py6
-rw-r--r--module/database/FileDatabase.py2
-rw-r--r--module/database/StorageDatabase.py2
-rw-r--r--module/database/UserDatabase.py2
4 files changed, 6 insertions, 6 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()
diff --git a/module/database/FileDatabase.py b/module/database/FileDatabase.py
index fdcafd3c4..3536b6306 100644
--- a/module/database/FileDatabase.py
+++ b/module/database/FileDatabase.py
@@ -573,7 +573,7 @@ class FileHandler:
""" restart all failed links """
self.db.restartFailed()
-class FileMethods():
+class FileMethods:
@style.queue
def filecount(self, queue):
"""returns number of files in queue"""
diff --git a/module/database/StorageDatabase.py b/module/database/StorageDatabase.py
index 049f229f3..074d97d3e 100644
--- a/module/database/StorageDatabase.py
+++ b/module/database/StorageDatabase.py
@@ -19,7 +19,7 @@
from module.database import style
from module.database import DatabaseBackend
-class StorageMethods():
+class StorageMethods:
@style.queue
def setStorage(db, identifier, key, value):
db.c.execute("SELECT id FROM storage WHERE identifier=? AND key=?", (identifier, key))
diff --git a/module/database/UserDatabase.py b/module/database/UserDatabase.py
index c33dee2e8..59b0f6dbf 100644
--- a/module/database/UserDatabase.py
+++ b/module/database/UserDatabase.py
@@ -22,7 +22,7 @@ import random
from DatabaseBackend import DatabaseBackend
from DatabaseBackend import style
-class UserMethods():
+class UserMethods:
@style.queue
def checkAuth(db, user, password):
c = db.c