( version: string | null, major: number, minor: number, )
| 70 | } |
| 71 | |
| 72 | export function isPythonVersionAtLeast( |
| 73 | version: string | null, |
| 74 | major: number, |
| 75 | minor: number, |
| 76 | ): boolean { |
| 77 | if (!version) return false |
| 78 | const match = version.match(/^(\d+)\.(\d+)/) |
| 79 | if (!match) return false |
| 80 | const currentMajor = Number(match[1]) |
| 81 | const currentMinor = Number(match[2]) |
| 82 | return currentMajor > major || (currentMajor === major && currentMinor >= minor) |
| 83 | } |
| 84 | |
| 85 | function firstOutputLine(output: string): string | null { |
| 86 | const line = output |
no outgoing calls
no test coverage detected