diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-03-30 16:29:54 +0100 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-03-30 16:29:54 +0100 |
commit | 9498839a1a29205d65c798a3a6bca272430b83c1 (patch) | |
tree | c4d19e95481f2d72fb86584eabf5c1cb925f8a40 /Lib/inspect.py | |
parent | 912fbff1053c7ebadced3233b18fb951e6d15399 (diff) | |
parent | 3fdd4f1935ba1bb4b45d77ed99281b134f3e6d24 (diff) | |
download | cpython-git-9498839a1a29205d65c798a3a6bca272430b83c1.tar.gz |
Merge
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 3661316042..e60a235fe4 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 |