Skip to content

Handle more python types

Maiken requested to merge python_versions into master

Related to !1376 (merged)

@waananen pointed out:

".".join(sys.version.split(".")[:2])

this works nicely if version is "x.y.z bla"

but not if version is "x.y bla"

so a simple change:

from: ".".join(sys.version.split(".")[:2]) to: ".".join(sys.version.split(" ")[0].split(".")[:2])

Merge request reports

Loading