X7ROOT File Manager
Current Path:
/usr/lib/python3.6/site-packages/tuned
usr
/
lib
/
python3.6
/
site-packages
/
tuned
/
ðŸ“
..
📄
__init__.py
(953 B)
ðŸ“
__pycache__
ðŸ“
admin
📄
consts.py
(7.84 KB)
ðŸ“
daemon
📄
exceptions.py
(568 B)
ðŸ“
exports
ðŸ“
hardware
📄
logs.py
(3.75 KB)
ðŸ“
monitors
📄
patterns.py
(335 B)
ðŸ“
plugins
ðŸ“
ppd
ðŸ“
profiles
ðŸ“
storage
ðŸ“
units
ðŸ“
utils
📄
version.py
(171 B)
Editing: patterns.py
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
Upload File
Create Folder