🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-14 14:30:59 | PHP 8.1.34
📂
/ (Root)
/
usr
/
lib
/
python3.9
/
site-packages
/
tuned
📍 /usr/lib/python3.9/site-packages/tuned
🔄 Refresh
✏️
Editing: patterns.py
Read Only
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
💾 Save Changes
❌ Cancel