fix Issue 52 by removing unneeded parameters from object.__new__ calls
This commit is contained in:
parent
9c71b10206
commit
bd21c57a68
@ -1,5 +1,6 @@
|
||||
0.5.3
|
||||
- apply patch for Issue 29 by Jonathan Ellis
|
||||
- fix Issue 52 by removing needless parameters from object.__new__ calls
|
||||
|
||||
0.5.2
|
||||
- move sphinx and nose dependencies to extras_require and tests_require
|
||||
|
@ -14,7 +14,7 @@ class KeyedInstance(object):
|
||||
|
||||
key = cls._key(*p,**k)
|
||||
if key not in instances:
|
||||
instances[key] = super(KeyedInstance,cls).__new__(cls,*p,**k)
|
||||
instances[key] = super(KeyedInstance,cls).__new__(cls)
|
||||
self = instances[key]
|
||||
return self
|
||||
|
||||
|
@ -9,7 +9,7 @@ class VerNum(object):
|
||||
def __new__(cls,value):
|
||||
val=str(value)
|
||||
if val not in cls._instances:
|
||||
cls._instances[val] = super(VerNum,cls).__new__(cls,value)
|
||||
cls._instances[val] = super(VerNum,cls).__new__(cls)
|
||||
ret = cls._instances[val]
|
||||
return ret
|
||||
def __init__(self,value):
|
||||
|
Loading…
x
Reference in New Issue
Block a user