Linux vacca.o2switch.net 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP Thu May 7 23:17:13 UTC 2026 x86_64
/
proc
/
self
/
root
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python3.6
/
site-packages
/
tuned
/
//proc/self/root/proc/thread-self/root/usr/lib/python3.6/site-packages/tuned/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