Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /lib/python3.6/site-packages/tuned/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //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
Name
Size
Permissions
Options
__pycache__
--
drwxr-xr-x
admin
--
drwxr-xr-x
daemon
--
drwxr-xr-x
exports
--
drwxr-xr-x
hardware
--
drwxr-xr-x
monitors
--
drwxr-xr-x
plugins
--
drwxr-xr-x
ppd
--
drwxr-xr-x
profiles
--
drwxr-xr-x
storage
--
drwxr-xr-x
units
--
drwxr-xr-x
utils
--
drwxr-xr-x
__init__.py
0.931 KB
-rw-r--r--
consts.py
7.844 KB
-rw-r--r--
exceptions.py
0.555 KB
-rw-r--r--
logs.py
3.745 KB
-rw-r--r--
patterns.py
0.327 KB
-rw-r--r--
version.py
0.167 KB
-rw-r--r--