Returns the Python version as tuple (major, minor, patchlevel) of strings. Note that unlike the Python sys.version, the returned value will always include the patchlevel (it defaults to 0).
()
| 1127 | return _sys_version()[1] |
| 1128 | |
| 1129 | def python_version_tuple(): |
| 1130 | |
| 1131 | """ Returns the Python version as tuple (major, minor, patchlevel) |
| 1132 | of strings. |
| 1133 | |
| 1134 | Note that unlike the Python sys.version, the returned value |
| 1135 | will always include the patchlevel (it defaults to 0). |
| 1136 | |
| 1137 | """ |
| 1138 | return tuple(_sys_version()[1].split('.')) |
| 1139 | |
| 1140 | def python_branch(): |
| 1141 |
nothing calls this directly
no test coverage detected