MCPcopy Index your code
hub / github.com/VeNoMouS/cloudscraper / _pythonVersion

Function _pythonVersion

cloudscraper/help.py:25–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24
25def _pythonVersion():
26 interpreter = platform.python_implementation()
27 interpreter_version = platform.python_version()
28
29 if interpreter == 'PyPy':
30 interpreter_version = \
31 f'{sys.pypy_version_info.major}.{sys.pypy_version_info.minor}.{sys.pypy_version_info.micro}'
32 if sys.pypy_version_info.releaselevel != 'final':
33 interpreter_version = f'{interpreter_version}{sys.pypy_version_info.releaselevel}'
34 return {
35 'name': interpreter,
36 'version': interpreter_version
37 }
38
39# ------------------------------------------------------------------------------- #
40

Callers 1

systemInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…