MCPcopy Create free account
hub / github.com/ycm-core/YouCompleteMe / _EndsWithPython

Function _EndsWithPython

python/ycm/paths.py:82–84  ·  view source on GitHub ↗

Check if given path ends with a python 3.6+ name.

( path )

Source from the content-addressed store, hash-verified

80
81
82def _EndsWithPython( path ):
83 """Check if given path ends with a python 3.6+ name."""
84 return path and PYTHON_BINARY_REGEX.search( path ) is not None
85
86
87def PathToServerScript():

Callers 3

EndsWithPython_GoodFunction · 0.90
EndsWithPython_BadFunction · 0.90
PathToPythonInterpreterFunction · 0.85

Calls

no outgoing calls

Tested by 2

EndsWithPython_GoodFunction · 0.72
EndsWithPython_BadFunction · 0.72