Serhiy Storchaka
20a8392cec
[3.7] bpo-26544: Get rid of dependence from distutils in platform. (GH-8356). (GH-8970)
...
(cherry picked from commit 7d81e8f599
)
2018-09-04 17:31:18 +03:00
Serhiy Storchaka
7c43b80150
[3.7] bpo-26544: Fixed implementation of platform.libc_ver(). (GH-7684). (GH-8193)
...
(cherry picked from commit 2a9b8babf0
)
2018-07-09 12:55:35 +03:00
Miss Islington (bot)
f4fdb619dd
bpo-28167: bump platform.linux_distribution removal to 3.8 (GH-6669) (GH-6862)
...
Also bump PendingDeprecationWarning to DeprecationWarning.
(cherry picked from commit 9eb40bc38d
)
Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
2018-05-15 13:30:06 -04:00
Victor Stinner
fe2d5babba
bpo-32159: Remove tools for CVS and Subversion ( #4615 )
...
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
2017-11-28 22:29:32 +01:00
Ned Deily
5c4b0d063a
bpo-27593: Get SCM build info from git instead of hg. ( #446 )
...
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.
2017-03-04 00:19:55 -05:00
Matthias Bussonnier
6059ce45aa
bpo-27788 : synchronise platform.py version number ( #246 )
...
Was bumped in the docstring by b9f4feab1b
but not in `__version__`
2017-02-24 11:47:34 +01:00
Steve Dower
74f4af7ac3
Issue #27932 : Prevent memory leak in win32_ver().
2016-09-17 17:27:48 -07:00
Steve Dower
81994006f5
Merge from 3.5
2016-09-10 11:53:34 -07:00
Steve Dower
f028d9f71a
Issue #27932 : Backs out change
2016-09-10 11:52:18 -07:00
Steve Dower
6a294a54de
Issue #27932 : Fixes memory leak in platform.win32_ver()
2016-09-09 18:01:25 -07:00
Steve Dower
1588a3b377
Issue #27932 : Fixes memory leak in platform.win32_ver()
2016-09-09 18:04:26 -07:00
Steve Dower
41519b2ca8
Issue #26513 : Fixes platform module detection of Windows Server
2016-09-09 09:46:56 -07:00
Steve Dower
7bcf7931fc
Issue #26513 : Fixes platform module detection of Windows Server
2016-09-09 09:47:09 -07:00
R David Murray
44b548dda8
#27364 : fix "incorrect" uses of escape character in the stdlib.
...
And most of the tools.
Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and
Martin Panter.
2016-09-08 13:59:53 -04:00
Larry Hastings
10108a7b9a
Issue #27355 : Removed support for Windows CE. It was never finished,
...
and Windows CE is no longer a relevant platform for Python.
2016-09-05 15:11:23 -07:00
Martin Panter
eb9957065a
Issue #27626 : Spelling fixes in docs, comments and internal names
...
Based on patch by Ville Skyttä.
2016-07-28 01:11:04 +00:00
Martin Panter
4e50553823
Issue #21313 : Tolerate truncated buildinfo in sys.version
2016-06-08 06:12:22 +00:00
Berker Peksag
8d8221f0d6
Issue #26041 : Remove "will be removed in Python 3.7" from description messages
...
We will keep platform.dist() and platform.linux_distribution() to make porting
from Python 2 easier.
Patch by Kumaripaba Miyurusara Athukorala.
2016-04-24 03:32:24 +03:00
Steve Dower
126c9c17ef
Issue #26513 : Fixes platform module detection of Windows Server
2016-03-12 08:06:23 -08:00
Steve Dower
5b1640cd2b
Merge from 3.4
2015-09-22 17:35:42 -07:00
Steve Dower
8f278f1662
Handle calls to win32_ver from non-Windows platform
2015-09-22 17:35:24 -07:00
Steve Dower
64a3387d69
Issue #19143 : platform module now reads Windows version from kernel32.dll to avoid compatibility shims.
2015-09-22 17:29:51 -07:00
Steve Dower
b9f4feab1b
Issue #19143 : platform module now reads Windows version from kernel32.dll to avoid compatibility shims.
2015-09-22 17:23:39 -07:00
Steve Dower
cae101f5ec
Issue #24839 : platform._syscmd_ver raises DeprecationWarning
2015-08-10 20:57:37 -07:00
Berker Peksag
1392f71c39
Issue #24210 : Silence a PendingDeprecationWarning warning in platform.platform().
2015-05-16 20:24:28 +03:00
Berker Peksag
2f3742b0d8
Issue #1322 : platform.dist() and platform.linux_distribution() functions are now deprecated.
...
Initial patch by Vajrasky Kok.
2015-05-13 12:32:20 +03:00
Serhiy Storchaka
46ba6c8563
Issue #22831 : Use "with" to avoid possible fd leaks.
2015-04-04 11:01:02 +03:00
Victor Stinner
7fa767e517
Issue #20976 : pyflakes: Remove unused imports
2014-03-20 09:16:38 +01:00
Ned Deily
936dfae2e2
Issue #20229 : Avoid plistlib deprecation warning in platform.mac_ver().
2014-01-13 11:34:19 -08:00
Victor Stinner
ced3936894
Issue #17429 : some PEP 8 compliance fixes for the platform modules, add whitespaces
2013-12-09 00:14:52 +01:00
Victor Stinner
0aba1a2663
(Merge 3.3) Issue #17429 : platform.linux_distribution() now decodes files from
...
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.
2013-12-09 00:04:09 +01:00
Victor Stinner
620c48b7ea
Issue #17429 : platform.linux_distribution() now decodes files from 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.
2013-12-09 00:01:27 +01:00
Ezio Melotti
5c16c2eb45
#8964 : merge with 3.3.
2013-10-21 03:05:46 +03:00
Ezio Melotti
f076f53386
#8964 : fix platform._sys_version to handle IronPython 2.6+.
2013-10-21 03:03:32 +03:00
Ezio Melotti
9a3777e525
#18705 : merge with 3.3.
2013-08-17 15:53:55 +03:00
Ezio Melotti
30b9d5d3af
#18705 : fix a number of typos. Patch by Févry Thibault.
2013-08-17 15:50:46 +03:00
Ronald Oussoren
0fedb37c47
Issue #18393 : Remove use of deprecated API on OSX
...
The "Gestalt" function on OSX is deprecated (starting with OSX 10.8),
remove its usage from the stdlib. The patch removes a number of private
functions and a private module, but does not change the public API.
The removed code was effectively dead, the platform module has used
other code to fetch the OSX version for years and could only use
on the Gestalt-based code as a fallback. That fallback can only trigger
on broken OSX installs (that is, someone has removed parts of the system
install)
2013-07-15 18:32:09 +02:00
Brett Cannon
cd171c8e92
Issue #18200 : Back out usage of ModuleNotFoundError (8d28d44f3a9a)
2013-07-04 17:43:24 -04:00
Brett Cannon
0a140668fa
Issue #18200 : Update the stdlib (except tests) to use
...
ModuleNotFoundError.
2013-06-13 20:57:26 -04:00
Andrew Svetlov
f7a17b48d7
Replace IOError with OSError ( #16715 )
2012-12-25 16:47:37 +02:00
Andrew Svetlov
2606a6f197
Issue #16719 : Get rid of WindowsError. Use OSError instead
...
Patch by Serhiy Storchaka.
2012-12-19 14:33:35 +02:00
Andrew Svetlov
0832af6628
Issue #16717 : get rid of socket.error, replace with OSError
2012-12-18 23:10:48 +02:00
Andrew Svetlov
ad28c7f9da
Issue #16706 : get rid of os.error
2012-12-18 22:02:39 +02:00
Benjamin Peterson
143d034ecd
merge 3.2
2012-10-12 12:04:32 -04:00
Brian Curtin
e33f20c4e9
Merge 3.2
2012-10-11 16:12:47 -05:00
Brian Curtin
0b960f5a58
Fix #16176 . Properly identify Windows 8 via platform.platform()
...
Add handling of the 6.2 release line, aka Windows 8 and Windows 2012 Server.
2012-10-11 16:07:52 -05:00
Jesus Cea
b451fd65de
MERGE: #16112 : platform.architecture does not correctly escape argument to /usr/bin/file. Fix original patch
2012-10-05 05:32:10 +02:00
Jesus Cea
cb95996fdc
MERGE: #16112 : platform.architecture does not correctly escape argument to /usr/bin/file. Fix original patch
2012-10-05 05:31:31 +02:00
Jesus Cea
685fffa8f4
#16112 : platform.architecture does not correctly escape argument to /usr/bin/file. Fix original patch
2012-10-05 05:21:42 +02:00
Jesus Cea
adc8211e00
#16112 : platform.architecture does not correctly escape argument to /usr/bin/file. Use 'communicate()' and decode the bytes
2012-10-05 04:58:38 +02:00