correction d’une faute de style dans singleton

This commit is contained in:
papush! 2019-12-07 12:36:16 +01:00
parent e8be8b52ab
commit 392fbd8e74

View File

@ -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)