Commit 4c7b9a2b authored by root's avatar root

Little typo

parent 0833f5cf
...@@ -99,7 +99,7 @@ class Singleton(object, metaclass=MetaSingleton): ...@@ -99,7 +99,7 @@ class Singleton(object, metaclass=MetaSingleton):
def _getConstructionArgCountNotCountingSelf(cls): def _getConstructionArgCountNotCountingSelf(cls):
#return cls.__init__.__func__.__code__.co_argcount - 1 #return cls.__init__.__func__.__code__.co_argcount - 1
return six.get_function_code(cls.__init__).co_argument -1 return six.get_function_code(cls.__init__).co_argcount -1
_getConstructionArgCountNotCountingSelf = classmethod(_getConstructionArgCountNotCountingSelf) _getConstructionArgCountNotCountingSelf = classmethod(_getConstructionArgCountNotCountingSelf)
def _forgetClassInstanceReferenceForTesting(cls): def _forgetClassInstanceReferenceForTesting(cls):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment