PATH:
usr
/
lib
/
python2.7
/
site-packages
/
tuned
class Singleton(object): """ Singleton design pattern. """ _instance = None def __init__(self): if self.__class__ is Singleton: raise TypeError("Cannot instantiate directly.") @classmethod def get_instance(cls): """Get the class instance.""" if cls._instance is None: cls._instance = cls() return cls._instance
[-] patterns.pyo
[edit]
[-] __init__.pyo
[edit]
[+]
admin
[-] patterns.py
[edit]
[-] exceptions.py
[edit]
[+]
..
[-] logs.py
[edit]
[+]
profiles
[-] exceptions.pyc
[edit]
[+]
utils
[-] patterns.pyc
[edit]
[-] __init__.pyc
[edit]
[-] exceptions.pyo
[edit]
[+]
daemon
[+]
storage
[+]
monitors
[-] version.pyo
[edit]
[-] version.py
[edit]
[-] version.pyc
[edit]
[-] logs.pyo
[edit]
[+]
plugins
[-] __init__.py
[edit]
[+]
units
[-] logs.pyc
[edit]
[+]
hardware
[-] consts.py
[edit]
[-] consts.pyc
[edit]
[+]
exports
[-] consts.pyo
[edit]