py3k port helpers

This commit is contained in:
Ruud committed 2014-01-20 23:58:54 +01:00
1 parent 08e2a3a883
commit 29a34fef8c
28 files changed
+58 -44

No files matched your search

+1 -1
View File
@@ -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)