MCPcopy Create free account
hub / github.com/DataDog/datadog-agent / get_default_python

Function get_default_python

tasks/utils.py:279–285  ·  view source on GitHub ↗

Get the default python for the current build: - default to 2 if python_runtimes includes 2 (so that builds with 2 and 3 default to 2) - default to 3 otherwise.

(python_runtimes)

Source from the content-addressed store, hash-verified

277
278
279def get_default_python(python_runtimes):
280 """
281 Get the default python for the current build:
282 - default to 2 if python_runtimes includes 2 (so that builds with 2 and 3 default to 2)
283 - default to 3 otherwise.
284 """
285 return "2" if '2' in python_runtimes.split(',') else "3"
286
287
288def get_go_version():

Callers 1

get_build_flagsFunction · 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…