py3k port helpers
This commit is contained in:
1 parent
08e2a3a883
commit
29a34fef8c
28 files changed
+58
-44
No files matched your search
@@ -29,7 +29,7 @@ def addEvent(name, handler, priority = 100):
|
||||
has_parent = hasattr(handler, 'im_self')
|
||||
parent = None
|
||||
if has_parent:
|
||||
parent = handler.im_self
|
||||
parent = handler.__self__
|
||||
bc = hasattr(parent, 'beforeCall')
|
||||
if bc: parent.beforeCall(handler)
|
||||
|
||||
|
||||
Reference in new issue
Block a user