Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit07e18d7

Browse files
committed
Use __self__ instead of im_self for Python 3 compatibility (fixes#479)
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent0748500 commit07e18d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎bpython/inspection.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def getargspec(func, f):
235235
func_name=None
236236

237237
try:
238-
is_bound_method= ((inspect.ismethod(f)andf.im_selfisnotNone)
238+
is_bound_method= ((inspect.ismethod(f)andf.__self__isnotNone)
239239
or (func_name=='__init__'andnot
240240
func.endswith('.__init__')))
241241
except:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp