Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-35389: platform.platform() calls libc_ver() without executable (GH-14418) | Victor Stinner | 2019-06-27 | 1 | -1/+1 |
| | | | | | | | When libc_ver() is called with an executable, the os.confstr('CS_GNU_LIBC_VERSION') fast-path cannot be taken. Modify platform.platform() to call libc_ver() without executable, instead of calling libc_ver(sys.executable), since sys.executable is already the default value. | ||||
* | bpo-36766: Typos in docs and code comments (GH-13116) | penguindustin | 2019-05-06 | 1 | -1/+1 |
| | |||||
* | bpo-35920: Windows 10 ARM32 platform support (GH-11774) | Paul Monson | 2019-04-25 | 1 | -0/+21 |
| | |||||
* | Fixes platform.win32_ver on non-Windows platforms (GH-12912) | Steve Dower | 2019-04-22 | 1 | -12/+12 |
| | |||||
* | bpo-35516: platform.system_alias() don't replace Darwin (GH-11207) | Victor Stinner | 2018-12-18 | 1 | -0/+3 |
| | | | | Add a comment explaining why system_alias() doesn't alias Darwin to macOS. | ||||
* | bpo-35348: Fix platform.architecture() (GH-11159) | Victor Stinner | 2018-12-17 | 1 | -4/+12 |
| | | | | | | | | | | Make platform.architecture() parsing of "file" command output more reliable: * Add the "-b" option to the "file" command to omit the filename; * Force the usage of the C locale; * Search also the "shared object" pattern. Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com> | ||||
* | bpo-35346: Cleanup platform.architecture() (GH-11130) | Victor Stinner | 2018-12-14 | 1 | -6/+2 |
| | | | struct.calcsize('P') now always works. | ||||
* | bpo-35346: Drop Mac OS 9 support from platform (GH-10959) | Victor Stinner | 2018-12-12 | 1 | -15/+2 |
| | | | | | | Drop Mac OS 9 and Rhapsody support from the platform module: * Rhapsody: last release in 2000 * Mac OS 9: last release in 2001 | ||||
* | bpo-35346, platform: replace os.popen() with subprocess (GH-10786) | Victor Stinner | 2018-12-07 | 1 | -39/+19 |
| | | | | | | | | | | | Replace os.popen() with subprocess.check_output() in the platform module: * platform.uname() (its _syscmd_ver() helper function) now redirects stderr to DEVNULL. * Remove platform.DEV_NULL. * _syscmd_uname() and _syscmd_file() no longer catch AttributeError. The "except AttributeError:" was only needed in Python 2, when os.popen() was not always available. In Python 3, subprocess.check_output() is always available. | ||||
* | bpo-35344: platform.platform() uses mac_ver() on macOS (GH-10780) | Victor Stinner | 2018-12-05 | 1 | -0/+8 |
| | | | | | On macOS, platform.platform() now uses mac_ver(), if it returns a non-empty release string, to get the macOS version rather than darwin version. | ||||
* | bpo-35389: platform.libc_ver() uses os.confstr() (GH-10891) | Victor Stinner | 2018-12-05 | 1 | -1/+14 |
| | | | | | | | | | | platform.libc_ver() now uses os.confstr('CS_GNU_LIBC_VERSION') if available and the *executable* parameter is not set. The default value of the libc_ver() *executable* parameter becomes None. Quick benchmark on Fedora 29: python3 -m perf command ./python -S -c 'import platform; platform.libc_ver()' 94.9 ms +- 4.3 ms -> 33.2 ms +- 1.4 ms: 2.86x faster (-65%) | ||||
* | bpo-35346, platform: import subprocess in _syscmd_file() (GH-10892) | Victor Stinner | 2018-12-04 | 1 | -5/+7 |
| | | | | | | | Only platform._syscmd_file() uses subprocess. Move subprocess import inside this function to reduce the number of imports at Python startup. Remove also warnings import which is no longer needed. | ||||
* | bpo-35345: Remove platform.popen() (GH-10781) | Victor Stinner | 2018-11-29 | 1 | -9/+0 |
| | | | | | | | Remove platform.popen() function, it was deprecated since Python 3.3: use os.popen() instead. Rename also the "Removed" section to "API and Feature Removals" of What's New in Python 3.8. | ||||
* | bpo-28167: Remove platform._dist_try_harder() (GH-10787) | Victor Stinner | 2018-11-29 | 1 | -48/+0 |
| | | | | | platform._dist_try_harder() was an helper function for platform.linux_distribution() which has been removed by the commit 8b94b41ab7b12f745dea744e8940631318816935. | ||||
* | bpo-26544: Get rid of dependence from distutils in platform. (GH-8356) | Serhiy Storchaka | 2018-08-27 | 1 | -1/+30 |
| | |||||
* | bpo-26544: Fixed implementation of platform.libc_ver(). (GH-7684) | Serhiy Storchaka | 2018-07-09 | 1 | -11/+13 |
| | |||||
* | bpo-28167: Remove platform.linux_distribution (GH-6871) | Petr Viktorin | 2018-05-16 | 1 | -156/+5 |
| | | | | | | | | * test_ssl: Remove skip_if_broken_ubuntu_ssl We no longer support OpenSSL 0.9.8.15.15. * bpo-28167: Remove platform.linux_distribution | ||||
* | bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6669) | Matthias Bussonnier | 2018-05-15 | 1 | -3/+3 |
| | | | | | Also bump PendingDeprecationWarning to DeprecationWarning. | ||||
* | bpo-32159: Remove tools for CVS and Subversion (#4615) | Victor Stinner | 2017-11-28 | 1 | -5/+2 |
| | | | | | | | | | | CPython migrated from CVS to Subversion, to Mercurial, and then to Git. CVS and Subversion are not more used to develop CPython. * platform module: drop support for sys.subversion. The sys.subversion attribute has been removed in Python 3.3. * Remove Misc/svnmap.txt * Remove Tools/scripts/svneol.py * Remove Tools/scripts/treesync.py | ||||
* | bpo-27593: Get SCM build info from git instead of hg. (#446) | Ned Deily | 2017-03-04 | 1 | -1/+3 |
| | | | | | | | sys.version and the platform module python_build(), python_branch(), and python_revision() functions now use git information rather than hg when building from a repo. Based on original patches by Brett Cannon and Steve Dower. | ||||
* | bpo-27788 : synchronise platform.py version number (#246) | Matthias Bussonnier | 2017-02-24 | 1 | -1/+1 |
| | | | | Was bumped in the docstring by b9f4feab1b9c9ffa8ea29af3d82bc536f9f3005a but not in `__version__` | ||||
* | Issue #27932: Prevent memory leak in win32_ver(). | Steve Dower | 2016-09-18 | 1 | -60/+1 |
| | |||||
* | Merge from 3.5 | Steve Dower | 2016-09-10 | 1 | -33/+29 |
|\ | |||||
| * | Issue #27932: Backs out change | Steve Dower | 2016-09-10 | 1 | -33/+29 |
| | | |||||
* | | Issue #27932: Fixes memory leak in platform.win32_ver() | Steve Dower | 2016-09-10 | 1 | -29/+33 |
|\ \ | |/ | |||||
| * | Issue #27932: Fixes memory leak in platform.win32_ver() | Steve Dower | 2016-09-10 | 1 | -29/+33 |
| | | |||||
* | | Issue #26513: Fixes platform module detection of Windows Server | Steve Dower | 2016-09-09 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #26513: Fixes platform module detection of Windows Server | Steve Dower | 2016-09-09 | 1 | -1/+1 |
| | | |||||
* | | #27364: fix "incorrect" uses of escape character in the stdlib. | R David Murray | 2016-09-08 | 1 | -17/+17 |
| | | | | | | | | | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter. | ||||
* | | Issue #27355: Removed support for Windows CE. It was never finished, | Larry Hastings | 2016-09-05 | 1 | -1/+0 |
|/ | | | | and Windows CE is no longer a relevant platform for Python. | ||||
* | Issue #27626: Spelling fixes in docs, comments and internal names | Martin Panter | 2016-07-28 | 1 | -1/+1 |
| | | | | Based on patch by Ville Skyttä. | ||||
* | Issue #21313: Tolerate truncated buildinfo in sys.version | Martin Panter | 2016-06-08 | 1 | -4/+11 |
| | |||||
* | Issue #26041: Remove "will be removed in Python 3.7" from description messages | Berker Peksag | 2016-04-24 | 1 | -4/+2 |
| | | | | | | | We will keep platform.dist() and platform.linux_distribution() to make porting from Python 2 easier. Patch by Kumaripaba Miyurusara Athukorala. | ||||
* | Issue #26513: Fixes platform module detection of Windows Server | Steve Dower | 2016-03-12 | 1 | -1/+1 |
| | |||||
* | Merge from 3.4 | Steve Dower | 2015-09-23 | 1 | -1/+4 |
|\ | |||||
| * | Handle calls to win32_ver from non-Windows platform | Steve Dower | 2015-09-23 | 1 | -1/+4 |
| | | |||||
| * | Issue #19143: platform module now reads Windows version from kernel32.dll to ↵ | Steve Dower | 2015-09-23 | 1 | -168/+120 |
| | | | | | | | | avoid compatibility shims. | ||||
* | | Issue #19143: platform module now reads Windows version from kernel32.dll to ↵ | Steve Dower | 2015-09-23 | 1 | -168/+120 |
| | | | | | | | | avoid compatibility shims. | ||||
* | | Issue #24839: platform._syscmd_ver raises DeprecationWarning | Steve Dower | 2015-08-11 | 1 | -1/+1 |
| | | |||||
* | | Issue #24210: Silence a PendingDeprecationWarning warning in ↵ | Berker Peksag | 2015-05-16 | 1 | -1/+11 |
| | | | | | | | | platform.platform(). | ||||
* | | Issue #1322: platform.dist() and platform.linux_distribution() functions are ↵ | Berker Peksag | 2015-05-13 | 1 | -3/+16 |
| | | | | | | | | | | | | now deprecated. Initial patch by Vajrasky Kok. | ||||
* | | Issue #22831: Use "with" to avoid possible fd leaks. | Serhiy Storchaka | 2015-04-04 | 1 | -33/+32 |
|/ | |||||
* | Issue #20976: pyflakes: Remove unused imports | Victor Stinner | 2014-03-20 | 1 | -1/+0 |
| | |||||
* | Issue #20229: Avoid plistlib deprecation warning in platform.mac_ver(). | Ned Deily | 2014-01-13 | 1 | -1/+2 |
| | |||||
* | Issue #17429: some PEP 8 compliance fixes for the platform modules, add ↵ | Victor Stinner | 2013-12-08 | 1 | -111/+113 |
| | | | | whitespaces | ||||
* | (Merge 3.3) Issue #17429: platform.linux_distribution() now decodes files from | Victor Stinner | 2013-12-08 | 1 | -2/+7 |
|\ | | | | | | | | | | | | | the UTF-8 encoding with the surrogateescape error handler, instead of decoding from the locale encoding in strict mode. It fixes the function on Fedora 19 which is probably the first major distribution release with a non-ASCII name. Patch written by Toshio Kuratomi. | ||||
| * | Issue #17429: platform.linux_distribution() now decodes files from the UTF-8 | Victor Stinner | 2013-12-08 | 1 | -2/+7 |
| | | | | | | | | | | | | | | encoding with the surrogateescape error handler, instead of decoding from the locale encoding in strict mode. It fixes the function on Fedora 19 which is probably the first major distribution release with a non-ASCII name. Patch written by Toshio Kuratomi. | ||||
* | | #8964: merge with 3.3. | Ezio Melotti | 2013-10-21 | 1 | -3/+16 |
|\ \ | |/ | |||||
| * | #8964: fix platform._sys_version to handle IronPython 2.6+. | Ezio Melotti | 2013-10-21 | 1 | -3/+16 |
| | | |||||
* | | #18705: merge with 3.3. | Ezio Melotti | 2013-08-17 | 1 | -4/+4 |
|\ \ | |/ |