summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Klinikowski <kkszysiu@gmail.com>2010-05-27 01:06:06 +0200
committerKrzysztof Klinikowski <kkszysiu@gmail.com>2010-05-27 01:06:06 +0200
commit4fdbc7a2a0f0735e2f616009bf7491e033e6b63e (patch)
tree76bebf2a8c30b2ccb1ca7e1eb9b06d78d55da58d
parent2cb7a81e98ea80a6b8d7b268562c2f17240ef40d (diff)
handle: stop passing args to object.__new__ if __init__ is overridden, from http://git.collabora.co.uk/?p=telepathy-butterfly.git;a=commit;h=23a918dc8f6fa64300a42cbc85223a256ee065e7
-rw-r--r--sunshine/handle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sunshine/handle.py b/sunshine/handle.py
index 140d2e5..d26d442 100644
--- a/sunshine/handle.py
+++ b/sunshine/handle.py
@@ -54,7 +54,7 @@ class SunshineHandle(telepathy.server.Handle):
def __new__(cls, connection, *args):
key = (cls, connection._account[0], args)
if key not in cls.instances.keys():
- instance = object.__new__(cls, connection, *args)
+ instance = object.__new__(cls)
#instance = super(object, self).__init__(cls, connection, *args)
cls.instances[key] = instance # TRICKY: instances is a weakdict
return instance, True