Ezio Melotti
bc38548145
#8964 : fix platform._sys_version to handle IronPython 2.6+.
2013-10-21 03:03:32 +03:00
Ezio Melotti
f5469cff1f
#18705 : fix a number of typos. Patch by Févry Thibault.
2013-08-17 15:43:51 +03:00
Brian Curtin
c1924ab729
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:16:50 -05:00
Jesus Cea
2699c9d248
#16112 : platform.architecture does not correctly escape argument to /usr/bin/file. Fix original patch
2012-10-05 05:18:47 +02:00
Jesus Cea
69e7c9b1fd
#16112 : platform.architecture does not correctly escape argument to /usr/bin/file. Use 'communicate()'
2012-10-05 04:50:17 +02:00
Jesus Cea
debda5d4e2
Closes #16112 : platform.architecture does not correctly escape argument to /usr/bin/file. Solve a 2.7 bootstrap issue
2012-10-04 15:14:56 +02:00
Jesus Cea
3e94e14a68
Backed out changeset 5abacebec9d2
2012-10-04 15:06:57 +02:00
Jesus Cea
82a3924122
Backed out changeset c73b90b6dadd
2012-10-04 14:22:16 +02:00
Jesus Cea
95038fa526
Closes #16112 : platform.architecture does not correctly escape argument to /usr/bin/file
2012-10-04 13:46:33 +02:00
Brian Curtin
b4bef305fd
merge from fb225c289bf0
2012-02-01 15:17:39 -06:00
Victor Stinner
429a12b7b6
Issue #13545 : Fix platform.libc_version() is the SO version is missing
2011-12-15 21:42:03 +01:00
Ned Deily
0ab67ee79e
Issue #12549 : Correct test_platform to not fail when OS X returns 'x86_64'
...
as the processor type on some Mac systems. Also fix NameError in fallback
_mac_ver_gestalt function. And remove out-of-date URL in docs.
2011-07-13 15:05:31 -07:00
Ezio Melotti
6fa0947285
#11985 : update docstring of platform.python_implementation.
2011-05-04 18:37:50 +03:00
Ezio Melotti
c2077b0d9b
#11565 : Fix several typos. Patch by Piotr Kasprzyk.
2011-03-16 12:34:31 +02:00
Ronald Oussoren
22e3e694ed
Merged revisions 83644 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83644 | ronald.oussoren | 2010-08-03 09:42:42 +0200 (Tue, 03 Aug 2010) | 2 lines
Fix for issue 9455: platform.mac_ver() broken on OSX/ppc
........
2010-08-03 07:44:35 +00:00
Ronald Oussoren
3a04a25206
Merged revisions 83075 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83075 | ronald.oussoren | 2010-07-23 12:54:59 +0100 (Fri, 23 Jul 2010) | 5 lines
Fix for issue 7895. Avoid crashing the interpreter
when calling platform.mac_ver after calling os.fork by
reading from a system configuration file instead of
using OSX APIs.
........
2010-07-23 12:41:00 +00:00
Brian Curtin
11f8b9db79
Fix #7863 . Properly identify Windows 7 and Server 2008 R2.
...
Removed various unused code and added a way to correctly determine
server vs. workstation via the registry.
2010-05-06 02:54:44 +00:00
Ronald Oussoren
9545a23c7f
In a number of places code still revers
...
to "sys.platform == 'mac'" and that is
dead code because it refers to a platform
that is no longer supported (and hasn't been
supported for several releases).
Fixes issue #7908 for the trunk.
2010-05-05 19:09:31 +00:00
Victor Stinner
814b6c222d
Revert r80166 (and r80171), restore Lib/platform.py. subprocess cannot be used in platform.py
2010-04-18 18:22:25 +00:00
Antoine Pitrou
5ac74168b9
Fix bootstrap after r80166
2010-04-18 11:16:24 +00:00
Victor Stinner
b2a0a434a8
platform: use subprocess.Popen() instead of os.popen() in _syscmd_file()
...
* Popen() avoids ugly shell escape: target.replace('"', '\\"')
* Use proc.communicate() instead of f.stdout.read()
* Get output from stdout by splitting with ": " instead of splitting by spaces
to support filename with spaces
2010-04-18 09:07:49 +00:00
Florent Xicluna
8d1da0f5c3
#7092 : Fix some -3 warnings, and fix Lib/platform.py when the path contains a double-quote.
2010-04-01 18:17:09 +00:00
R. David Murray
c9d1a7845b
Issue #7860 : platform.uname now reports the correct 'machine' type
...
when Python is running in WOW64 mode on 64 bit Windows. Patch by
Brian Curtin.
2010-03-22 15:55:09 +00:00
Ronald Oussoren
9341ad2200
Remove call to gestalt('sysu') from platform.py. This gestalt call is
...
not available on OSX an appearently causes problems for some users.
Fixes issue 7812
2010-02-07 11:29:31 +00:00
Benjamin Peterson
a43f34cc2a
fix an UnboundLocalError when the release file is empty #7773
2010-01-25 03:31:13 +00:00
Georg Brandl
8cdc9bc901
More yearly updates.
2010-01-01 13:07:05 +00:00
Georg Brandl
52c1794b98
Update bug tracker reference.
2009-09-19 08:43:16 +00:00
Marc-André Lemburg
cecaa65f65
Use a different VER command output parser to address the localization
...
issues mentioned in #3410 .
Prepare for Windows 7 (still commented out).
2009-07-13 21:28:33 +00:00
Marc-André Lemburg
19e5b3f9d1
Use a new global DEV_NULL instead of hard-coding /dev/null into the system
...
command helper functions.
See #6479 for some motivation.
2009-07-13 20:23:49 +00:00
Benjamin Peterson
0ad9b7727d
add support for PyPy
2009-03-26 19:09:21 +00:00
Benjamin Peterson
b457b89323
more and more implementations now support sys.subversion
2009-03-26 18:55:48 +00:00
Benjamin Peterson
f521b8c6d2
add much better tests for python version information parsing
2009-03-26 18:35:37 +00:00
Marc-André Lemburg
a519cfc953
Remove the sys.version_info shortcut, since they cause the APIs
...
to return different information than the _sys_version() output
used in previous Python versions.
This also fixes issue5561: platform.python_version_tuple returns tuple of ints, should be strings
Added more tests for the various platform functions.
2009-03-25 19:44:58 +00:00
Amaury Forgeot d'Arc
fbc0b0ca29
#4157 move two test functions out of platform.py.
...
Turn them into unit tests, and correct an obvious typo:
(("a", "b") ("c", "d") ("e", "f"))
compiles even with the missing commas, but does not execute very well...
2008-10-21 22:01:38 +00:00
Hirokazu Yamamoto
171c4aae4e
Issue #3762 : platform.architecture() fails if python is lanched via its symbolic link.
...
Reviewed by Amaury Forgeot d'Arc.
2008-09-04 11:15:14 +00:00
Marc-André Lemburg
d15fad7a89
Add quotes around the file name to avoid issues with spaces.
...
Closes #3719 .
2008-09-02 10:32:34 +00:00
Hirokazu Yamamoto
ed8c6441b5
Issue #3748 : platform.architecture() printed vogus message on windows.
...
Reviewed by Marc-Andre Lemburg.
2008-09-01 14:32:58 +00:00
Benjamin Peterson
5c0be328c1
platform.uname now tries to fill empty values even when os.uname is present
2008-06-13 15:11:50 +00:00
Ronald Oussoren
7a0f4c75b1
- Add unittests for platform.mac_ver (or rather, ensure that the unittest for
...
that function actually tests something on OSX).
- Add documentation to platform.mac_ver that explains why the middle element
of the return value will not contain useful information.
2008-05-18 20:54:47 +00:00
Ronald Oussoren
c27b8b88e3
Fix for issue 1770190: platform.mac_ver() now returns the right
...
version on OSX 10.4.10
2008-05-08 10:34:39 +00:00
Marc-André Lemburg
dbd61a2bff
If Mark Hammonds win32 tools are not available, try to use the _winreg module
...
and sys.getwindowsversion() to get at the Windows version info.
For the machine and processor uname() values, use the environment variables
for these on Windows XP and later.
2008-03-20 17:31:36 +00:00
Marc-André Lemburg
50967bdec2
Add new name for Mandrake: Mandriva.
2008-03-08 10:01:43 +00:00
Sean Reifscheider
f09597c1fd
issue1082: Fixing platform and system for Vista.
2007-09-17 20:53:21 +00:00
Marc-André Lemburg
b24cd0f05a
Add patch #1726668 : Windows Vista support.
2007-06-12 09:26:49 +00:00
Marc-André Lemburg
0e09788eda
Apply patch #1734945 to support TurboLinux as distribution.
2007-06-12 09:09:58 +00:00
Tim Peters
f733abb783
Whitespace normalization.
2007-01-30 03:03:46 +00:00
Marc-André Lemburg
3b8f60b700
Use defaults if sys.executable isn't set (e.g. on Jython).
...
This change allows running PyBench under Jython.
2007-01-13 23:13:54 +00:00
Marc-André Lemburg
2be9d43c18
Add parameter sys_version to _sys_version().
...
Change the cache for _sys_version() to take the parameter into account.
Add support for parsing the IronPython 1.0.1 sys.version value - even
though it still returns '1.0.0'; the version string no longer includes
the patch level.
2007-01-13 22:32:21 +00:00
Neal Norwitz
4b86f8b88b
Fix grammar in docstrings
2007-01-13 21:22:37 +00:00
Marc-André Lemburg
9e0dc960d7
Bump version number and change copyright year.
...
Add new API linux_distribution() which supports reading the full distribution
name and also knows how to parse LSB-style release files.
Redirect the old dist() API to the new API (using the short distribution name
taken from the release file filename).
Add branch and revision to _sys_version().
Add work-around for Cygwin to libc_ver().
Add support for IronPython (thanks for Anthony Baxter) and make
Jython support more robust.
2007-01-13 21:00:08 +00:00