ok
Direktori : /lib/python3.6/site-packages/tuned/__pycache__/ |
Current File : //lib/python3.6/site-packages/tuned/__pycache__/patterns.cpython-36.pyc |
3 �<�eO � @ s G d d� de �ZdS )c @ s( e Zd ZdZdZdd� Zedd� �ZdS )� Singletonz Singleton design pattern. Nc C s | j tkrtd��d S )NzCannot instantiate directly.)� __class__r � TypeError)�self� r �/usr/lib/python3.6/patterns.py�__init__ s zSingleton.__init__c C s | j dkr| � | _ | j S )zGet the class instance.N)� _instance)�clsr r r �get_instance s zSingleton.get_instance)�__name__� __module__�__qualname__�__doc__r r �classmethodr r r r r r s r N)�objectr r r r r �<module> s