correction d’une faute de style dans singleton
This commit is contained in:
parent
e8be8b52ab
commit
392fbd8e74
@ -3,7 +3,7 @@ class Singleton(type):
|
||||
super(Singleton, cls).__init__(name, bases, dict)
|
||||
cls.instance = None
|
||||
|
||||
def __call__(cls,*args,**kw):
|
||||
def __call__(cls, *args, **kw):
|
||||
if cls.instance is None:
|
||||
cls.instance = super(Singleton, cls).\
|
||||
__call__(*args, **kw)
|
||||
|
Reference in New Issue
Block a user