14 lines
272 B
Python
14 lines
272 B
Python
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.
|
|
|