Skip to content

Commit

Permalink
Merge pull request #284 from hesom/event_exception_fix
Browse files Browse the repository at this point in the history
Fix deprecated Python 2 attribute naming
  • Loading branch information
rougier committed May 15, 2021
2 parents 28d64ed + 2cc91b6 commit f236b97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions glumpy/app/window/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,9 @@ def _raise_dispatch_exception(self, event_type, args, handler):
if n_handler_args != n_args:
if inspect.isfunction(handler) or inspect.ismethod(handler):
descr = '%s at %s:%d' % (
handler.func_name,
handler.func_code.co_filename,
handler.func_code.co_firstlineno)
handler.__name__,
handler.__code__.co_filename,
handler.__code__.co_firstlineno)
else:
descr = repr(handler)

Expand Down

0 comments on commit f236b97

Please sign in to comment.