summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorMichael Felt <aixtools@users.noreply.github.com>2019-04-12 14:15:32 (GMT)
committerVictor Stinner <vstinner@redhat.com>2019-04-12 14:15:32 (GMT)
commit9d949f7796da612f1b588d18c6f041376992a9fc (patch)
tree63decb39986d71d9f431cf17d8806e511126b7a2 /Misc/NEWS.d
parent9b8314cfe29ca532fc335277f6c36b72e6132922 (diff)
downloadcpython-9d949f7796da612f1b588d18c6f041376992a9fc.zip
cpython-9d949f7796da612f1b588d18c6f041376992a9fc.tar.gz
cpython-9d949f7796da612f1b588d18c6f041376992a9fc.tar.bz2
bpo-36588: On AIX, remove major version from sys.platform (GH-12787)
On AIX, sys.platform doesn't contain the major version anymore. Always return 'aix', instead of 'aix3' .. 'aix7'. Since older Python versions include the version number, it is recommended to always use sys.platform.startswith('aix').
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2019-04-11-14-36-55.bpo-36588.wejLoC.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-04-11-14-36-55.bpo-36588.wejLoC.rst b/Misc/NEWS.d/next/Core and Builtins/2019-04-11-14-36-55.bpo-36588.wejLoC.rst
new file mode 100644
index 0000000..77d2fa4
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2019-04-11-14-36-55.bpo-36588.wejLoC.rst
@@ -0,0 +1,5 @@
+On AIX, :attr:`sys.platform` doesn't contain the major version anymore.
+Always return ``'aix'``, instead of ``'aix3'`` .. ``'aix7'``. Since
+older Python versions include the version number, it is recommended to
+always use ``sys.platform.startswith('aix')``.
+Contributed by M. Felt.