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

Method hassuffix

Lib/test/test_getpath.py:995–996  ·  view source on GitHub ↗
(self, path, suffix)

Source from the content-addressed store, hash-verified

993 return name
994
995 def hassuffix(self, path, suffix):
996 return path.casefold().endswith(suffix.casefold())
997
998 def isabs(self, path):
999 return path[1:3] == ":\\"

Callers

nothing calls this directly

Calls 2

casefoldMethod · 0.80
endswithMethod · 0.45

Tested by

no test coverage detected