We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 651e40e commit df86fcfCopy full SHA for df86fcf
Lib/inspect.py
@@ -857,8 +857,7 @@ def getsourcefile(object):
857
Return None if no way can be identified to get the source.
858
"""
859
filename = getfile(object)
860
- all_bytecode_suffixes = importlib.machinery.DEBUG_BYTECODE_SUFFIXES[:]
861
- all_bytecode_suffixes += importlib.machinery.OPTIMIZED_BYTECODE_SUFFIXES[:]
+ all_bytecode_suffixes = importlib.machinery.BYTECODE_SUFFIXES[:]
862
if any(filename.endswith(s) for s in all_bytecode_suffixes):
863
filename = (os.path.splitext(filename)[0] +
864
importlib.machinery.SOURCE_SUFFIXES[0])
0 commit comments