Source code for gamebench_api_client.singleton

[docs]class Singleton(object): """ Generic Singleton."""
[docs] def __new__(cls, *args, **kwds): it = cls.__dict__.get("__it__") if it is not None: return it cls.__it__ = it = object.__new__(cls) it.__init__(*args, **kwds) return it
[docs] def __init__(self, *args, **kwds): pass