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)
| 277 | |
| 278 | |
| 279 | def 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 | |
| 288 | def get_go_version(): |
no outgoing calls
no test coverage detected
searching dependent graphs…