mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Restore Python 1.5.2 compatibility.
This commit is contained in:
parent
071b0bc9f8
commit
f0b5d174c1
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ def get_build_version():
|
||||||
i = string.find(sys.version, prefix)
|
i = string.find(sys.version, prefix)
|
||||||
if i == -1:
|
if i == -1:
|
||||||
return 6
|
return 6
|
||||||
i += len(prefix)
|
i = i + len(prefix)
|
||||||
s, rest = sys.version[i:].split(" ", 1)
|
s, rest = sys.version[i:].split(" ", 1)
|
||||||
n = int(s[:-2])
|
n = int(s[:-2])
|
||||||
if n == 12:
|
if n == 12:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue