reverted changes to __new__ that broke PluginWiki, need more tests
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 1.99.4 (2011-12-31 14:37:01) stable
|
||||
Version 1.99.4 (2012-01-06 22:57:17) stable
|
||||
|
||||
+2
-2
@@ -4076,7 +4076,7 @@ class PluginManager(object):
|
||||
True
|
||||
"""
|
||||
instances = {}
|
||||
def __new__(cls):
|
||||
def __new__(cls,*a,**b):
|
||||
id = thread.get_ident()
|
||||
lock = thread.allocate_lock()
|
||||
try:
|
||||
@@ -4084,7 +4084,7 @@ class PluginManager(object):
|
||||
try:
|
||||
return cls.instances[id]
|
||||
except KeyError:
|
||||
instance = object.__new__(cls)
|
||||
instance = object.__new__(cls,*a,**b)
|
||||
cls.instances[id] = instance
|
||||
return instance
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user