Einfach so

This commit is contained in:
2024-11-25 15:19:46 +01:00
parent 93efaabe6d
commit 12eb6cf2f4

View File

@@ -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.