first commit
This commit is contained in:
parent
3936f652e9
commit
dd53c6a842
21 changed files with 116 additions and 114 deletions
|
|
@ -26,12 +26,8 @@ def convert_time(t):
|
|||
return '%02d:%02d' % (h, m)
|
||||
|
||||
|
||||
class Singleton(object):
|
||||
|
||||
def __new__(cls, *args, **kwargs):
|
||||
if not hasattr(cls, '_instance'):
|
||||
cls._instance = super(Singleton, cls).__new__(cls, *args, **kwargs)
|
||||
return cls._instance
|
||||
class Singleton:
|
||||
_instance = None
|
||||
|
||||
@classmethod
|
||||
def get_instance(cls):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue