FirstStart angepasst
This commit is contained in:
13
lib/Test.py
Normal file
13
lib/Test.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import toml
|
||||
|
||||
|
||||
class Singleton(object):
|
||||
def __new__(cls):
|
||||
if not hasattr(cls, "__instance"):
|
||||
cls.__instance = super().__new__(cls)
|
||||
return cls.__instance
|
||||
|
||||
class DbManager(Singleton):
|
||||
def __init__(self, dbconf):
|
||||
toml.
|
||||
|
||||
Reference in New Issue
Block a user