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

Method ismodule

Lib/test/test_getpath.py:1011–1015  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

1009 return path.casefold() in self._files
1010
1011 def ismodule(self, path):
1012 if verbose:
1013 print("Check if", path, "is a module")
1014 path = path.casefold()
1015 return path in self._files and path.rpartition(".")[2] == "py".casefold()
1016
1017 def isxfile(self, path):
1018 if verbose:

Callers 11

isdataFunction · 0.45
_is_bound_methodFunction · 0.45
documentMethod · 0.45
describeFunction · 0.45
render_docFunction · 0.45
_normalize_moduleFunction · 0.45
_module_relative_pathFunction · 0.45
_findMethod · 0.45
_find_linenoMethod · 0.45
testmodFunction · 0.45

Calls 2

casefoldMethod · 0.80
rpartitionMethod · 0.45

Tested by

no test coverage detected