]> granicus.if.org Git - python/log
python
12 years agoAdd yet another missing versionchanged.
Georg Brandl [Tue, 26 Jun 2012 07:14:40 +0000 (09:14 +0200)]
Add yet another missing versionchanged.

12 years agoUpdate suspicious ignore file and pydoc topics.
Georg Brandl [Tue, 26 Jun 2012 07:12:26 +0000 (09:12 +0200)]
Update suspicious ignore file and pydoc topics.

12 years agoFix a few markup nits in zlib docs and add missing versionchanged tags.
Georg Brandl [Tue, 26 Jun 2012 06:51:17 +0000 (08:51 +0200)]
Fix a few markup nits in zlib docs and add missing versionchanged tags.

12 years agoIssue #15817: Bugfix: remove temporary directories test_shutil was leaving
Larry Hastings [Tue, 26 Jun 2012 06:50:01 +0000 (23:50 -0700)]
Issue #15817: Bugfix: remove temporary directories test_shutil was leaving
behind.

12 years agomerge from 3.2 - Issue13685
Senthil Kumaran [Tue, 26 Jun 2012 06:18:19 +0000 (14:18 +0800)]
merge from 3.2 - Issue13685

12 years agoIssue #13685 - Update argparse help message for % sign usage.
Senthil Kumaran [Tue, 26 Jun 2012 06:17:19 +0000 (14:17 +0800)]
Issue #13685 - Update argparse help message for % sign usage.

12 years agoCloses #15179: Merged fix from 3.2.
Vinay Sajip [Mon, 25 Jun 2012 22:20:27 +0000 (23:20 +0100)]
Closes #15179: Merged fix from 3.2.

12 years agoIssue #15179: Closed socket on connection failure. Thanks to Kazutaka Morita for...
Vinay Sajip [Mon, 25 Jun 2012 22:18:45 +0000 (23:18 +0100)]
Issue #15179: Closed socket on connection failure. Thanks to Kazutaka Morita for the patch.

12 years agoIf main() is called and an argument cannot be decoded, make sure to
Brett Cannon [Mon, 25 Jun 2012 20:25:28 +0000 (16:25 -0400)]
If main() is called and an argument cannot be decoded, make sure to
free the copy of the command-line.

Found using Clang's static analyzer.

12 years agoComment out a dead increment.
Brett Cannon [Mon, 25 Jun 2012 20:13:44 +0000 (16:13 -0400)]
Comment out a dead increment.

Found by Clang's static analyzer.

12 years agoIssue #14443: ensure that brp-python-bytecompile is invoked with the correct
David Malcolm [Mon, 25 Jun 2012 19:52:24 +0000 (15:52 -0400)]
Issue #14443: ensure that brp-python-bytecompile is invoked with the correct
python executable

The __os_install_macro defines some post-processing activities during an rpm
build; one of the scripts it calls is brp-python-bytecompile, which can take
an argument: the python executable with which to byte-compile .py files in the
package payload.

In some older versions of rpm (e.g. in RHEL 6), this invocation doesn't pass
in an argument, and brp-python-bytecompile defaults to using /usr/bin/python,
which can lead to the .py files being byte-compiled for the wrong version of
python.  This has been fixed in later versions of rpm by passing in
%{__python} as an argument to brp-python-bytecompile.

Workaround this by detecting if __os_install_post has a 0-argument invocation
of brp-python-bytecompile, and if so generating an equivalent macro that has
the argument, and explicitly provide the new definition within the specfile.

12 years agoMerge
Antoine Pitrou [Mon, 25 Jun 2012 16:09:07 +0000 (18:09 +0200)]
Merge

12 years agoBackport test_nntplib fixes from default.
Antoine Pitrou [Mon, 25 Jun 2012 16:08:54 +0000 (18:08 +0200)]
Backport test_nntplib fixes from default.

12 years agoIssue #15181: importlib bytecode is unsigned and shouldn't have negative numbers.
Antoine Pitrou [Mon, 25 Jun 2012 15:32:43 +0000 (17:32 +0200)]
Issue #15181: importlib bytecode is unsigned and shouldn't have negative numbers.
This fixes a compiler warning with suncc.

12 years agoNull merge.
Stefan Krah [Mon, 25 Jun 2012 13:02:47 +0000 (15:02 +0200)]
Null merge.

12 years agoIssue #15171: Try the HOST_PYTHON hack for 3.2.
Stefan Krah [Mon, 25 Jun 2012 12:57:18 +0000 (14:57 +0200)]
Issue #15171: Try the HOST_PYTHON hack for 3.2.

12 years agoUpdate test script to Visual Studio 2010.
Stefan Krah [Mon, 25 Jun 2012 12:41:37 +0000 (14:41 +0200)]
Update test script to Visual Studio 2010.

12 years agoIssue #13950: Improve support for OS X Xcode 4:
Ned Deily [Mon, 25 Jun 2012 12:04:28 +0000 (05:04 -0700)]
Issue #13950: Improve support for OS X Xcode 4:
Fix ./configure to provide a more sensible default for
MACOSX_DEPLOYMENT_TARGET. Currently the default is the minimum OS X level
that supports the universal arch option, typically 10.4, even when no
universalsdk is selected. This causes various desirable features that
depend on later OS X versions, like libedit readline support, to be
omitted from the build. A more complete solution would take into account
the SDK that is being used and better tailor the universal arch options.
For now, change the existing tests to only apply to build systems of 10.5
and earlier; for 10.6 and later, use the build system version as the
default deployment target if the MACOSX_DEPLOYMENT_TARGET environment
variable is not provided.

12 years agoMoved hmac.compare_digest Misc/NEWS entry from Core and Builtins to Library.
Larry Hastings [Mon, 25 Jun 2012 11:51:59 +0000 (04:51 -0700)]
Moved hmac.compare_digest Misc/NEWS entry from Core and Builtins to Library.

12 years agoIssue #15177: Added dir_fd parameter to os.fwalk().
Larry Hastings [Mon, 25 Jun 2012 11:49:05 +0000 (04:49 -0700)]
Issue #15177: Added dir_fd parameter to os.fwalk().

12 years agoSkip test in freebsd entirely - Kernel bug in freebsd7/8/9 - #10142: Support for...
Jesus Cea [Mon, 25 Jun 2012 11:45:38 +0000 (13:45 +0200)]
Skip test in freebsd entirely - Kernel bug in freebsd7/8/9 - #10142: Support for SEEK_HOLE/SEEK_DATA

12 years agoIssue #15176: Clarified behavior, documentation, and implementation
Larry Hastings [Mon, 25 Jun 2012 11:42:23 +0000 (04:42 -0700)]
Issue #15176: Clarified behavior, documentation, and implementation
of os.listdir().

12 years ago#4489 Make fd based rmtree work on bytes
Hynek Schlawack [Mon, 25 Jun 2012 11:27:31 +0000 (13:27 +0200)]
#4489 Make fd based rmtree work on bytes

12 years agoMore doc fixes: made it clear where to start reading when you click on <dir_fd>.
Larry Hastings [Mon, 25 Jun 2012 10:27:33 +0000 (03:27 -0700)]
More doc fixes: made it clear where to start reading when you click on <dir_fd>.

12 years agomerge heads
Gregory P. Smith [Mon, 25 Jun 2012 08:15:53 +0000 (01:15 -0700)]
merge heads

12 years agoBackout change e8f44ebacda7052267318cecf5b6f128d35add17. Reverting the test
Gregory P. Smith [Mon, 25 Jun 2012 08:15:14 +0000 (01:15 -0700)]
Backout change e8f44ebacda7052267318cecf5b6f128d35add17.  Reverting the test
to using signal.alarm(1) instead of signal.setitimer(signal.ITIMER_REAL, 0.1).

This is an attempt to see if this change is what caused the ubuntu arm buildbot
to hang in test_io's test_interrupted_write_retry_text.
Discussion in Issue #12268.

12 years agoBackout change e8f44ebacda7052267318cecf5b6f128d35add17. Reverting the test
Gregory P. Smith [Mon, 25 Jun 2012 08:13:32 +0000 (01:13 -0700)]
Backout change e8f44ebacda7052267318cecf5b6f128d35add17.  Reverting the test
to using signal.alarm(1) instead of signal.setitimer(signal.ITIMER_REAL, 0.1).

This is an attempt to see if this change is what caused the ubuntu arm buildbot
to hang in test_io's test_interrupted_write_retry_text.
Discussion in Issue #12268.

12 years agoMinor grammar refinement for hmac.compare_digest().
Larry Hastings [Mon, 25 Jun 2012 07:59:34 +0000 (00:59 -0700)]
Minor grammar refinement for hmac.compare_digest().

12 years agoSome tightening of the documentation for the new kwarg-style os module functionality.
Georg Brandl [Mon, 25 Jun 2012 06:33:56 +0000 (08:33 +0200)]
Some tightening of the documentation for the new kwarg-style os module functionality.

12 years agoGrammar fix.
Georg Brandl [Mon, 25 Jun 2012 05:40:32 +0000 (07:40 +0200)]
Grammar fix.

12 years agoGive test directory a more reasonable name.
Eric V. Smith [Sun, 24 Jun 2012 23:55:18 +0000 (19:55 -0400)]
Give test directory a more reasonable name.

12 years agoCloses #15173: Tidied up copyright statements and removed pythonv references.
Vinay Sajip [Sun, 24 Jun 2012 23:47:46 +0000 (00:47 +0100)]
Closes #15173: Tidied up copyright statements and removed pythonv references.

12 years agoFixes issue 15039: namespace packages are no longer imported in preference to modules...
Eric V. Smith [Sun, 24 Jun 2012 23:13:55 +0000 (19:13 -0400)]
Fixes issue 15039: namespace packages are no longer imported in preference to modules of the same name.

12 years agoRestore Misc/NEWS entries lost in the merge for the previous commit.
Larry Hastings [Sun, 24 Jun 2012 21:34:49 +0000 (14:34 -0700)]
Restore Misc/NEWS entries lost in the merge for the previous commit.

12 years agoIssue #15164: Change return value of platform.uname() from a
Larry Hastings [Sun, 24 Jun 2012 21:30:41 +0000 (14:30 -0700)]
Issue #15164: Change return value of platform.uname() from a
plain tuple to a collections.namedtuple.

12 years agoMerge with 3.2.
Georg Brandl [Sun, 24 Jun 2012 20:50:30 +0000 (22:50 +0200)]
Merge with 3.2.

12 years agoFix a couple of versionadded/versionchanged related markup errors.
Georg Brandl [Sun, 24 Jun 2012 20:48:30 +0000 (22:48 +0200)]
Fix a couple of versionadded/versionchanged related markup errors.

12 years agoFix a bunch of "versionchanged" related markup errors.
Georg Brandl [Sun, 24 Jun 2012 20:48:03 +0000 (22:48 +0200)]
Fix a bunch of "versionchanged" related markup errors.

12 years agoMerge
Antoine Pitrou [Sun, 24 Jun 2012 20:42:05 +0000 (22:42 +0200)]
Merge

12 years agoAdd a couple of what's new entries.
Antoine Pitrou [Sun, 24 Jun 2012 20:41:33 +0000 (22:41 +0200)]
Add a couple of what's new entries.

12 years agoFix statement.
Antoine Pitrou [Sun, 24 Jun 2012 20:38:23 +0000 (22:38 +0200)]
Fix statement.

12 years agoFix markup, for real this time.
Georg Brandl [Sun, 24 Jun 2012 20:26:21 +0000 (22:26 +0200)]
Fix markup, for real this time.

12 years agoMerge
Antoine Pitrou [Sun, 24 Jun 2012 20:22:07 +0000 (22:22 +0200)]
Merge

12 years agoFix indentation
Éric Araujo [Sun, 24 Jun 2012 20:22:09 +0000 (16:22 -0400)]
Fix indentation

12 years agoSupport Mageia Linux in the platform module.
Antoine Pitrou [Sun, 24 Jun 2012 20:20:18 +0000 (22:20 +0200)]
Support Mageia Linux in the platform module.

12 years agoCloses #11678: support Arch linux in the platform module.
Georg Brandl [Sun, 24 Jun 2012 20:17:23 +0000 (22:17 +0200)]
Closes #11678: support Arch linux in the platform module.

12 years agoMerge heads.
Ezio Melotti [Sun, 24 Jun 2012 20:04:02 +0000 (22:04 +0200)]
Merge heads.

12 years ago#15156: HTMLParser now uses the new "html.entities.html5" dictionary.
Ezio Melotti [Sun, 24 Jun 2012 20:02:56 +0000 (22:02 +0200)]
#15156: HTMLParser now uses the new "html.entities.html5" dictionary.

12 years agoDrop useenv=true also from the 32-bit build script: It is not necessary and
Stefan Krah [Sun, 24 Jun 2012 20:00:44 +0000 (22:00 +0200)]
Drop useenv=true also from the 32-bit build script: It is not necessary and
leads to failures in successive 64-bit/32-bit builds in the same shell window.

12 years agoIssue #15055: update dictnotes.txt. Patch by Mark Shannon.
Antoine Pitrou [Sun, 24 Jun 2012 19:03:45 +0000 (21:03 +0200)]
Issue #15055: update dictnotes.txt.  Patch by Mark Shannon.

12 years agoMerge with 3.2.
Georg Brandl [Sun, 24 Jun 2012 18:07:40 +0000 (20:07 +0200)]
Merge with 3.2.

12 years agoRefer test_xmlrpc_net to the new buildbot URL at buildbot.python.org.
Georg Brandl [Sun, 24 Jun 2012 18:06:54 +0000 (20:06 +0200)]
Refer test_xmlrpc_net to the new buildbot URL at buildbot.python.org.

12 years agoMerge with 3.2.
Georg Brandl [Sun, 24 Jun 2012 18:02:59 +0000 (20:02 +0200)]
Merge with 3.2.

12 years agoPartial backport of 612f34e31270: fix spacing error in exception message.
Georg Brandl [Sun, 24 Jun 2012 18:01:05 +0000 (20:01 +0200)]
Partial backport of 612f34e31270: fix spacing error in exception message.

12 years agourllib.request: fix spacing errors in exception/warning messages.
Georg Brandl [Sun, 24 Jun 2012 17:56:31 +0000 (19:56 +0200)]
urllib.request: fix spacing errors in exception/warning messages.

12 years agoBranch merge
Éric Araujo [Sun, 24 Jun 2012 17:54:22 +0000 (13:54 -0400)]
Branch merge

12 years agoFix markup
Éric Araujo [Sun, 24 Jun 2012 17:53:48 +0000 (13:53 -0400)]
Fix markup

12 years agoFix typos
Éric Araujo [Sun, 24 Jun 2012 17:53:41 +0000 (13:53 -0400)]
Fix typos

12 years agoRestore test that was using pysetup and can now (#15157) use pydoc
Éric Araujo [Sun, 24 Jun 2012 17:51:22 +0000 (13:51 -0400)]
Restore test that was using pysetup and can now (#15157) use pydoc

12 years agoFix test__locale on Mac; platform.uname() does not have a structseq-type interface...
Georg Brandl [Sun, 24 Jun 2012 17:29:49 +0000 (19:29 +0200)]
Fix test__locale on Mac; platform.uname() does not have a structseq-type interface (yet).

12 years agoIssue #15102: Fix paths of python executables.
Stefan Krah [Sun, 24 Jun 2012 17:04:35 +0000 (19:04 +0200)]
Issue #15102: Fix paths of python executables.

12 years agoAlpha -> Beta
Georg Brandl [Sun, 24 Jun 2012 16:12:24 +0000 (18:12 +0200)]
Alpha -> Beta

12 years agoAdd a single versionadded for a whole section instead of repeating for every function.
Georg Brandl [Sun, 24 Jun 2012 16:09:40 +0000 (18:09 +0200)]
Add a single versionadded for a whole section instead of repeating for every function.

12 years agoSmall whitespace fixes for shutil.rmtree() docs.
Georg Brandl [Sun, 24 Jun 2012 15:39:05 +0000 (17:39 +0200)]
Small whitespace fixes for shutil.rmtree() docs.

12 years ago#444582: fix example and rewrap docs a bit.
Georg Brandl [Sun, 24 Jun 2012 15:37:07 +0000 (17:37 +0200)]
#444582: fix example and rewrap docs a bit.

12 years agoAdd 3.2.3 version to the license table.
Georg Brandl [Sun, 24 Jun 2012 15:31:06 +0000 (17:31 +0200)]
Add 3.2.3 version to the license table.

12 years agoMerge
Antoine Pitrou [Sun, 24 Jun 2012 15:23:12 +0000 (17:23 +0200)]
Merge

12 years agoCloses #15162: the meaning of "online" has shifted a bit in recent years, use "intera...
Georg Brandl [Sun, 24 Jun 2012 15:24:26 +0000 (17:24 +0200)]
Closes #15162: the meaning of "online" has shifted a bit in recent years, use "interactive" instead.

12 years agoUse -W on the Windows 64 buildbots
Antoine Pitrou [Sun, 24 Jun 2012 15:22:50 +0000 (17:22 +0200)]
Use -W on the Windows 64 buildbots

12 years agoRefactor the venv API docs into a real API doc style.
Georg Brandl [Sun, 24 Jun 2012 14:37:59 +0000 (16:37 +0200)]
Refactor the venv API docs into a real API doc style.

12 years agoFix test to really run behind a NNTP virus checker
Antoine Pitrou [Sun, 24 Jun 2012 14:28:18 +0000 (16:28 +0200)]
Fix test to really run behind a NNTP virus checker

12 years agoRemove a detailed discussion of content-based short circuiting, off topic for library...
Antoine Pitrou [Sun, 24 Jun 2012 14:23:54 +0000 (16:23 +0200)]
Remove a detailed discussion of content-based short circuiting, off topic for library docs.

12 years agoSimplify wording.
Antoine Pitrou [Sun, 24 Jun 2012 14:21:10 +0000 (16:21 +0200)]
Simplify wording.

12 years agoRemove debug output from test_shutil
Hynek Schlawack [Sun, 24 Jun 2012 14:21:22 +0000 (16:21 +0200)]
Remove debug output from test_shutil

12 years agoFormatting
Antoine Pitrou [Sun, 24 Jun 2012 14:18:48 +0000 (16:18 +0200)]
Formatting

12 years agoSmall wording update from Larry.
Georg Brandl [Sun, 24 Jun 2012 14:15:46 +0000 (16:15 +0200)]
Small wording update from Larry.

12 years agoFix doc of os.fwalk: example used now non-existing os.fstatat()
Hynek Schlawack [Sun, 24 Jun 2012 14:11:08 +0000 (16:11 +0200)]
Fix doc of os.fwalk: example used now non-existing os.fstatat()

12 years agoMerge heads.
Georg Brandl [Sun, 24 Jun 2012 14:11:23 +0000 (16:11 +0200)]
Merge heads.

12 years agoMerge heads.
Georg Brandl [Sun, 24 Jun 2012 14:10:47 +0000 (16:10 +0200)]
Merge heads.

12 years agoImprove hmac.compare_digest() docstring and documentation, courtesy of Larry H.
Georg Brandl [Sun, 24 Jun 2012 14:07:33 +0000 (16:07 +0200)]
Improve hmac.compare_digest() docstring and documentation, courtesy of Larry H.

12 years agoThe buffer protocol doesn't exist (in the glossary anyway).
Antoine Pitrou [Sun, 24 Jun 2012 14:04:38 +0000 (16:04 +0200)]
The buffer protocol doesn't exist (in the glossary anyway).

12 years agoLarry's suggested rewording of the compare_digest() docs.
Antoine Pitrou [Sun, 24 Jun 2012 14:03:50 +0000 (16:03 +0200)]
Larry's suggested rewording of the compare_digest() docs.

12 years agoMake the benchmark more fair for _decimal/decimal.py by setting context.prec
Stefan Krah [Sun, 24 Jun 2012 12:10:49 +0000 (14:10 +0200)]
Make the benchmark more fair for _decimal/decimal.py by setting context.prec
only once (float obviously doesn't set any context at all).

12 years agoFix use of class markup.
Georg Brandl [Sun, 24 Jun 2012 12:05:40 +0000 (14:05 +0200)]
Fix use of class markup.

12 years agoWhitespace cleanup.
Georg Brandl [Sun, 24 Jun 2012 11:58:31 +0000 (13:58 +0200)]
Whitespace cleanup.

12 years agoRemove unused variable.
Georg Brandl [Sun, 24 Jun 2012 11:55:35 +0000 (13:55 +0200)]
Remove unused variable.

12 years agoFix a refleak in c82451eeb595.
Georg Brandl [Sun, 24 Jun 2012 11:54:51 +0000 (13:54 +0200)]
Fix a refleak in c82451eeb595.

12 years agoIssue #15061: Re-implemented hmac.compare_digest() in C
Christian Heimes [Sun, 24 Jun 2012 11:48:32 +0000 (13:48 +0200)]
Issue #15061: Re-implemented hmac.compare_digest() in C

12 years agoIssue #15118: Change return value of os.uname() and os.times() from
Larry Hastings [Sun, 24 Jun 2012 11:33:36 +0000 (04:33 -0700)]
Issue #15118: Change return value of os.uname() and os.times() from
plain tuples to immutable iterable objects with named attributes
(structseq objects).

12 years agoFix casing of Unix.
Georg Brandl [Sun, 24 Jun 2012 11:31:20 +0000 (13:31 +0200)]
Fix casing of Unix.

12 years agoMake the style of the "Availability" sections consistent.
Georg Brandl [Sun, 24 Jun 2012 11:29:09 +0000 (13:29 +0200)]
Make the style of the "Availability" sections consistent.

12 years agoActually it is just one function.
Georg Brandl [Sun, 24 Jun 2012 11:26:22 +0000 (13:26 +0200)]
Actually it is just one function.

12 years agoMinor clarification about fdopen().
Georg Brandl [Sun, 24 Jun 2012 11:24:56 +0000 (13:24 +0200)]
Minor clarification about fdopen().

12 years agoRemove attribution; this is for the whatsnew.
Georg Brandl [Sun, 24 Jun 2012 11:06:44 +0000 (13:06 +0200)]
Remove attribution; this is for the whatsnew.

12 years agoIssue #15102: Try setting HOST_PYTHON in build-amd64.bat as a temporary
Stefan Krah [Sun, 24 Jun 2012 11:03:59 +0000 (13:03 +0200)]
Issue #15102: Try setting HOST_PYTHON in build-amd64.bat as a temporary
measure.

12 years agoCloses #15161: add support for giving path as a fd for truncate() and pathconf().
Georg Brandl [Sun, 24 Jun 2012 10:55:33 +0000 (12:55 +0200)]
Closes #15161: add support for giving path as a fd for truncate() and pathconf().

12 years agoRestore mostly-alphabetic sorting of os functions.
Georg Brandl [Sun, 24 Jun 2012 10:50:06 +0000 (12:50 +0200)]
Restore mostly-alphabetic sorting of os functions.

12 years agoNote that equivalents are valid for 3.3+ only.
Georg Brandl [Sun, 24 Jun 2012 10:38:14 +0000 (12:38 +0200)]
Note that equivalents are valid for 3.3+ only.

12 years agoMerged upstream changes.
Vinay Sajip [Sun, 24 Jun 2012 10:24:05 +0000 (11:24 +0100)]
Merged upstream changes.

12 years agoAdded Windows launcher documentation.
Vinay Sajip [Sun, 24 Jun 2012 10:23:07 +0000 (11:23 +0100)]
Added Windows launcher documentation.