fix Singleton.__call__ error

fix Singleton.__call__ error
This commit is contained in:
lip.z
2014-08-02 20:18:06 +08:00
parent f67a7b64c8
commit 0983ed29bb
+1 -1
View File
@@ -69,7 +69,7 @@ class Singleton( type ):
def __call__( cls, *args, **kw ):
if cls.instance is None:
cls.instance = super( Singleton, cls ).__call__( *args, **kw )
return cls.instance
return cls.instance
class MininetLogger( Logger, object ):