Einfach so
This commit is contained in:
13
lib/Test.py
13
lib/Test.py
@@ -1,13 +0,0 @@
|
|||||||
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