MCPcopy Create free account
hub / github.com/F-Stack/f-stack / check_dts_python_version

Function check_dts_python_version

dpdk/dts/framework/utils.py:32–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31
32def check_dts_python_version() -> None:
33 if sys.version_info.major < 3 or (sys.version_info.major == 3 and sys.version_info.minor < 10):
34 print(
35 RED(
36 (
37 "WARNING: DTS execution node's python version is lower than"
38 "python 3.10, is deprecated and will not work in future releases."
39 )
40 ),
41 file=sys.stderr,
42 )
43 print(RED("Please use Python >= 3.10 instead"), file=sys.stderr)
44
45
46def expand_range(range_str: str) -> list[int]:

Callers 1

run_allFunction · 0.85

Calls 2

REDFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected