MCPcopy Index your code
hub / github.com/python/cpython / fix_ext_py

Function fix_ext_py

Lib/test/test_trace.py:23–27  ·  view source on GitHub ↗

Given a .pyc filename converts it to the appropriate .py

(filename)

Source from the content-addressed store, hash-verified

21#------------------------------- Utilities -----------------------------------#
22
23def fix_ext_py(filename):
24 """Given a .pyc filename converts it to the appropriate .py"""
25 if filename.endswith('.pyc'):
26 filename = filename[:-1]
27 return filename
28
29def my_file_and_modname():
30 """The .py file and module name of this file (__file__)"""

Callers 6

my_file_and_modnameFunction · 0.85
setUpMethod · 0.85
setUpMethod · 0.85

Calls 1

endswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…