Skip to content

Commit 02b9237

Browse files
committed
replace overlooked .im_func with six.get_method_function()
1 parent 27ae4fa commit 02b9237

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/epydoc/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,8 +1283,8 @@ def _profile():
12831283
# 2005-September/047099.html>)
12841284
if (hasattr(Profile, 'dispatch') and
12851285
Profile.dispatch['c_exception'] is
1286-
Profile.trace_dispatch_exception.im_func):
1287-
trace_dispatch_return = Profile.trace_dispatch_return.im_func
1286+
six.get_method_function(Profile.trace_dispatch_exception)):
1287+
trace_dispatch_return = six.get_method_function(Profile.trace_dispatch_return)
12881288
Profile.dispatch['c_exception'] = trace_dispatch_return
12891289
try:
12901290
prof = Profile()

0 commit comments

Comments
 (0)