Ezio Melotti
b55d368055
Merged revisions 79558 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79558 | florent.xicluna | 2010-04-01 21:17:09 +0300 (Thu, 01 Apr 2010) | 2 lines
#7092 : Fix some -3 warnings, and fix Lib/platform.py when the path contains a double-quote.
........
2010-08-02 20:26:41 +00:00
Ronald Oussoren
446aa638d5
Merged revisions 83085 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/release27-maint
................
r83085 | ronald.oussoren | 2010-07-23 13:41:00 +0100 (Fri, 23 Jul 2010) | 12 lines
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:45:53 +00:00
Brian Curtin
a8538a504f
Merged revisions 80857 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80857 | brian.curtin | 2010-05-05 21:54:44 -0500 (Wed, 05 May 2010) | 5 lines
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 03:01:55 +00:00
Georg Brandl
b6453a902e
Merged revisions 77120,77151,77155,77209,77229,77256,77317,77331,77333,77359-77360,77382,77561,77570 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77120 | georg.brandl | 2009-12-29 22:09:17 +0100 (Di, 29 Dez 2009) | 1 line
#7595 : fix typo in argument default constant.
........
r77151 | georg.brandl | 2009-12-30 19:32:50 +0100 (Mi, 30 Dez 2009) | 1 line
#7487 : update Pygments version.
........
r77155 | georg.brandl | 2009-12-30 20:03:00 +0100 (Mi, 30 Dez 2009) | 1 line
We only support Windows NT derivatives now.
........
r77209 | georg.brandl | 2010-01-01 14:07:05 +0100 (Fr, 01 Jan 2010) | 1 line
More yearly updates.
........
r77229 | georg.brandl | 2010-01-02 13:35:01 +0100 (Sa, 02 Jan 2010) | 1 line
Fix casing.
........
r77256 | georg.brandl | 2010-01-02 23:55:55 +0100 (Sa, 02 Jan 2010) | 1 line
Fix typo.
........
r77317 | georg.brandl | 2010-01-05 19:14:52 +0100 (Di, 05 Jan 2010) | 1 line
Add Stefan.
........
r77331 | georg.brandl | 2010-01-06 18:43:06 +0100 (Mi, 06 Jan 2010) | 1 line
Small fixes to test_cmd: fix signature of do_shell, remove duplicate import, add option to run the custom Cmd class.
........
r77333 | georg.brandl | 2010-01-06 19:26:08 +0100 (Mi, 06 Jan 2010) | 1 line
#5950 : document that zip files with comments are unsupported in zipimport.
........
r77359 | georg.brandl | 2010-01-07 21:54:45 +0100 (Do, 07 Jan 2010) | 1 line
Fix description for Py_GetPath(); it sounded like it always returned sys.path.
........
r77360 | georg.brandl | 2010-01-07 22:48:47 +0100 (Do, 07 Jan 2010) | 1 line
#7653 : clarify how the PythonPath registry key should look like.
........
r77382 | georg.brandl | 2010-01-09 10:47:11 +0100 (Sa, 09 Jan 2010) | 1 line
#7422 : make it clear that getargspec() only works on Python functions.
........
r77561 | georg.brandl | 2010-01-17 09:42:30 +0100 (So, 17 Jan 2010) | 1 line
#7699 : improve datetime docs: straightforward linking to strftime/strptime section, mark classmethods as such.
........
r77570 | georg.brandl | 2010-01-17 13:14:42 +0100 (So, 17 Jan 2010) | 1 line
Add note about usage of STRINGLIB_EMPTY.
........
2010-03-21 19:16:28 +00:00
Ronald Oussoren
6ff97f7e21
Merged revisions 78056 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78056 | ronald.oussoren | 2010-02-07 12:29:31 +0100 (Sun, 07 Feb 2010) | 5 lines
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:30:54 +00:00
Benjamin Peterson
00b9051a7e
Merged revisions 77735 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77735 | benjamin.peterson | 2010-01-24 21:31:13 -0600 (Sun, 24 Jan 2010) | 1 line
fix an UnboundLocalError when the release file is empty #7773
........
2010-01-25 03:35:04 +00:00
Georg Brandl
f004d9dc84
Merged revisions 73206,73232,73299,73683,74020,74185,74544,74643,74647,74817,74838-74839,74865,74946,75402,75459,75604,75696 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r73206 | georg.brandl | 2009-06-04 11:15:12 +0200 (Do, 04 Jun 2009) | 1 line
#3584 : ignore trailing newlines when placing the caret for a SyntaxError location.
........
r73232 | georg.brandl | 2009-06-04 20:59:58 +0200 (Do, 04 Jun 2009) | 1 line
Add test for #3684 .
........
r73299 | georg.brandl | 2009-06-08 20:41:36 +0200 (Mo, 08 Jun 2009) | 1 line
Typo fix.
........
r73683 | georg.brandl | 2009-06-29 16:44:49 +0200 (Mo, 29 Jun 2009) | 1 line
Fix error handling in PyCode_Optimize, by Alexander Schremmer at EuroPython sprint.
........
r74020 | georg.brandl | 2009-07-16 09:18:07 +0200 (Do, 16 Jul 2009) | 1 line
#5910 : fix kqueue for calls with more than one event.
........
r74185 | georg.brandl | 2009-07-23 11:17:09 +0200 (Do, 23 Jul 2009) | 1 line
Fix the "pylocals" gdb command.
........
r74544 | georg.brandl | 2009-08-24 19:12:30 +0200 (Mo, 24 Aug 2009) | 1 line
#6775 : fix python.org URLs in README.
........
r74643 | georg.brandl | 2009-09-04 08:59:20 +0200 (Fr, 04 Sep 2009) | 2 lines
Issue #2666 : Handle BROWSER environment variable properly for unknown browser names in the webbrowser module.
........
r74647 | georg.brandl | 2009-09-04 10:17:04 +0200 (Fr, 04 Sep 2009) | 2 lines
Issue #5275 : In Cookie's Cookie.load(), properly handle non-string arguments as documented.
........
r74817 | georg.brandl | 2009-09-16 11:05:11 +0200 (Mi, 16 Sep 2009) | 1 line
Make deprecation notices as visible as warnings are right now.
........
r74838 | georg.brandl | 2009-09-16 18:22:12 +0200 (Mi, 16 Sep 2009) | 1 line
Remove some more boilerplate from the actual tests in test_pdb.
........
r74839 | georg.brandl | 2009-09-16 18:36:39 +0200 (Mi, 16 Sep 2009) | 1 line
Make the pdb displayhook compatible with the standard displayhook: do not print Nones. Add a test for that.
........
r74865 | georg.brandl | 2009-09-17 09:49:37 +0200 (Do, 17 Sep 2009) | 1 line
#6912 : add "with" block support to pindent.
........
r74946 | georg.brandl | 2009-09-19 10:43:16 +0200 (Sa, 19 Sep 2009) | 1 line
Update bug tracker reference.
........
r75402 | georg.brandl | 2009-10-14 17:51:48 +0200 (Mi, 14 Okt 2009) | 1 line
#7125 : fix typo.
........
r75459 | georg.brandl | 2009-10-17 10:57:43 +0200 (Sa, 17 Okt 2009) | 1 line
Fix refleaks in _ctypes PyCSimpleType_New, which fixes the refleak seen in test___all__.
........
r75604 | georg.brandl | 2009-10-22 13:36:50 +0200 (Do, 22 Okt 2009) | 1 line
Fix stylesheet for multi-paragraph impl-details.
........
r75696 | georg.brandl | 2009-10-25 21:25:43 +0100 (So, 25 Okt 2009) | 1 line
Fix a demo.
........
2009-10-27 15:39:53 +00:00
Marc-André Lemburg
152f222775
Merged revisions 70594-70595 via svnmerge from
...
svn+pythonssh://pythondev@svn.python.org/python/trunk
........
r70594 | marc-andre.lemburg | 2009-03-25 20:44:58 +0100 (Wed, 25 Mar 2009) | 9 lines
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.
........
r70595 | marc-andre.lemburg | 2009-03-25 20:45:33 +0100 (Wed, 25 Mar 2009) | 3 lines
News item for the platform.py fix (r70594).
........
2009-03-25 19:52:04 +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
Ronald Oussoren
749d070e93
Teach platform about darwin/x86
2006-04-17 13:37:15 +00:00
Martin v. Löwis
1df5c3961c
Generalize buildno to be a sequence of non-comma
...
characters.
2006-01-06 00:44:11 +00:00
Neal Norwitz
3dafaabfb5
Fix _sys_version() so it works with the new buildno, not sure if it is correct. test_platform passes
2005-12-18 04:10:10 +00:00
Walter Dörwald
e5a7fad356
Fix typo.
2005-11-21 17:01:27 +00:00
Marc-André Lemburg
380f417e15
Patch by pythonic <pythonic@gmail.com> to support Fedora
...
as Linux distro.
2005-11-07 16:11:02 +00:00
Marc-André Lemburg
cdc7923f6d
Added normalization for Windows system name. Closes SF #945665 .
2004-06-19 17:17:00 +00:00
Guido van Rossum
843c734ddd
Using reversed() is not compatible with Python 1.5.2.
2004-05-04 18:18:59 +00:00
Marc-André Lemburg
91e83e209d
Added more Windows version names (thanks to Thomas Heller).
...
Fixed bug in platform() cache (thanks to Brett Cannon).
(Restored Python 1.5.2 compatibility.)
2004-03-25 18:35:12 +00:00
Brett Cannon
9001cde559
Fix last patch to be backwards-compatible with Python 1.5.2 .
...
Bumped version micro number.
2004-03-25 18:32:11 +00:00
Brett Cannon
21beb4c2ce
Fixed a caching bug in platform.platform() where the argument of 'terse' was
...
not taken into consideration when caching value.
2004-03-25 16:55:12 +00:00
Raymond Hettinger
85c20a41df
Implement and apply PEP 322, reverse iteration
2003-11-06 14:06:48 +00:00
Raymond Hettinger
cc523fc53d
SF patch #834015 : Remove imports of unused modules
...
(Contributed by George Yoshida.)
2003-11-02 09:47:05 +00:00
Jack Jansen
a290e3d7c6
Bug fix for #780461 : 'sysu' gestalt selector is meaningless on MacOSX,
...
but attempting to get it resulted in a crash. Fixed. Backport candidate.
2003-08-11 11:08:49 +00:00
Brett Cannon
8ab27dfa13
Touch-up to docstrings.
2003-08-05 03:52:04 +00:00
Neal Norwitz
9b924c690e
remove extra parameter from _java_getprop, remove duplicate imports
2003-06-29 04:17:45 +00:00
Andrew M. Kuchling
47c2ab6b54
Fix docstring typo
2003-04-24 16:36:49 +00:00
Tim Peters
0eadaac7dc
Whitespace normalization.
2003-04-24 16:02:54 +00:00
Marc-André Lemburg
366a0feb9a
Reformatted a bit to remove the lengthy re.compile() from the function
...
definitions.
2003-04-24 11:46:35 +00:00
Marc-André Lemburg
246d847475
New module platform.py, submitted by Marc-Andre Lemburg.
...
There's no separate documentation for this module yet - apart from the
doc-strings which explain the APIs.
2003-04-24 11:36:11 +00:00