fix Issue 52 by removing unneeded parameters from object.__new__ calls

This commit is contained in:
jan.dittberner 2009-03-27 20:33:43 +00:00
parent 9c71b10206
commit bd21c57a68
3 changed files with 3 additions and 2 deletions

View File

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

View File

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

View File

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