diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-30 03:19:06 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-30 03:19:06 (GMT) |
commit | 0503de9c83b3fb3545d8fe34ad560ec3fc56a63b (patch) | |
tree | 73f7a2720cd554b1b470a72cbccaf05f7fc63254 /Lib/inspect.py | |
parent | 8c0fc15c411b577f310613e23724e985f1d2cf73 (diff) | |
parent | 1b145927d725b136b987df220dff0ec7529b6f29 (diff) | |
download | cpython-0503de9c83b3fb3545d8fe34ad560ec3fc56a63b.zip cpython-0503de9c83b3fb3545d8fe34ad560ec3fc56a63b.tar.gz cpython-0503de9c83b3fb3545d8fe34ad560ec3fc56a63b.tar.bz2 |
#17526: merge with 3.3.
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r-- | Lib/inspect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py index 3661316..e60a235 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -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 |