-- DeprecationWarning: object.__new__() takes no parameters

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2011-10-07 17:50:53 +02:00
parent b5c01f7354
commit ae15779c81
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class Type(object):
# name is second argument
name = args[1]
if not name in cls._instances:
instance = super(Type, cls).__new__(cls, *args, **kwargs)
instance = super(Type, cls).__new__(cls)
cls._instances[name] = instance
return cls._instances[name]