mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
#17526: merge with 3.3.
This commit is contained in:
commit
0503de9c83
3 changed files with 10 additions and 1 deletions
|
@ -550,7 +550,7 @@ def findsource(object):
|
|||
|
||||
file = getfile(object)
|
||||
sourcefile = getsourcefile(object)
|
||||
if not sourcefile and file[0] + file[-1] != '<>':
|
||||
if not sourcefile and file[:1] + file[-1:] != '<>':
|
||||
raise OSError('source code not available')
|
||||
file = sourcefile if sourcefile else file
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue