mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Patch #404275: generate a reasonable platform string for AIX
This commit is contained in:
parent
8016a4b0af
commit
9767e76808
1 changed files with 2 additions and 0 deletions
|
@ -54,6 +54,8 @@ def get_platform ():
|
|||
# fall through to standard osname-release-machine representation
|
||||
elif osname[:4] == "irix": # could be "irix64"!
|
||||
return "%s-%s" % (osname, release)
|
||||
elif osname[:3] == "aix":
|
||||
return "%s-%s.%s" % (osname, version, release)
|
||||
elif osname[:6] == "cygwin":
|
||||
rel_re = re.compile (r'[\d.]+')
|
||||
m = rel_re.match(release)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue