Advertisement
Uno-Dan

Untitled

Nov 9th, 2018
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. class Hooker(object):
  2.     instance = None
  3.  
  4.     def __new__(cls, **kwargs):
  5.         if not cls.instance:
  6.             cls.instance = super(Hooker, cls).__new__(cls)
  7.             cls.instance.manager = _HookManager()
  8.  
  9.         return cls.instance.manager
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement