]>
granicus.if.org Git - python/log
Senthil Kumaran [Tue, 26 Jun 2012 06:18:19 +0000 (14:18 +0800)]
merge from 3.2 - Issue13685
Senthil Kumaran [Tue, 26 Jun 2012 06:17:19 +0000 (14:17 +0800)]
Issue #13685 - Update argparse help message for % sign usage.
Vinay Sajip [Mon, 25 Jun 2012 22:20:27 +0000 (23:20 +0100)]
Closes #15179: Merged fix from 3.2.
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.
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.
Brett Cannon [Mon, 25 Jun 2012 20:13:44 +0000 (16:13 -0400)]
Comment out a dead increment.
Found by Clang's static analyzer.
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.
Antoine Pitrou [Mon, 25 Jun 2012 16:09:07 +0000 (18:09 +0200)]
Merge
Antoine Pitrou [Mon, 25 Jun 2012 16:08:54 +0000 (18:08 +0200)]
Backport test_nntplib fixes from default.
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.
Stefan Krah [Mon, 25 Jun 2012 13:02:47 +0000 (15:02 +0200)]
Null merge.
Stefan Krah [Mon, 25 Jun 2012 12:57:18 +0000 (14:57 +0200)]
Issue #15171: Try the HOST_PYTHON hack for 3.2.
Stefan Krah [Mon, 25 Jun 2012 12:41:37 +0000 (14:41 +0200)]
Update test script to Visual Studio 2010.
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.
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.
Larry Hastings [Mon, 25 Jun 2012 11:49:05 +0000 (04:49 -0700)]
Issue #15177: Added dir_fd parameter to os.fwalk().
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
Larry Hastings [Mon, 25 Jun 2012 11:42:23 +0000 (04:42 -0700)]
Issue #15176: Clarified behavior, documentation, and implementation
of os.listdir().
Hynek Schlawack [Mon, 25 Jun 2012 11:27:31 +0000 (13:27 +0200)]
#4489 Make fd based rmtree work on bytes
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>.
Gregory P. Smith [Mon, 25 Jun 2012 08:15:53 +0000 (01:15 -0700)]
merge heads
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.
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.
Larry Hastings [Mon, 25 Jun 2012 07:59:34 +0000 (00:59 -0700)]
Minor grammar refinement for hmac.compare_digest().
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.
Georg Brandl [Mon, 25 Jun 2012 05:40:32 +0000 (07:40 +0200)]
Grammar fix.
Eric V. Smith [Sun, 24 Jun 2012 23:55:18 +0000 (19:55 -0400)]
Give test directory a more reasonable name.
Vinay Sajip [Sun, 24 Jun 2012 23:47:46 +0000 (00:47 +0100)]
Closes #15173: Tidied up copyright statements and removed pythonv references.
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.
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.
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.
Georg Brandl [Sun, 24 Jun 2012 20:50:30 +0000 (22:50 +0200)]
Merge with 3.2.
Georg Brandl [Sun, 24 Jun 2012 20:48:30 +0000 (22:48 +0200)]
Fix a couple of versionadded/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.
Antoine Pitrou [Sun, 24 Jun 2012 20:42:05 +0000 (22:42 +0200)]
Merge
Antoine Pitrou [Sun, 24 Jun 2012 20:41:33 +0000 (22:41 +0200)]
Add a couple of what's new entries.
Antoine Pitrou [Sun, 24 Jun 2012 20:38:23 +0000 (22:38 +0200)]
Fix statement.
Georg Brandl [Sun, 24 Jun 2012 20:26:21 +0000 (22:26 +0200)]
Fix markup, for real this time.
Antoine Pitrou [Sun, 24 Jun 2012 20:22:07 +0000 (22:22 +0200)]
Merge
Éric Araujo [Sun, 24 Jun 2012 20:22:09 +0000 (16:22 -0400)]
Fix indentation
Antoine Pitrou [Sun, 24 Jun 2012 20:20:18 +0000 (22:20 +0200)]
Support Mageia 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.
Ezio Melotti [Sun, 24 Jun 2012 20:04:02 +0000 (22:04 +0200)]
Merge heads.
Ezio Melotti [Sun, 24 Jun 2012 20:02:56 +0000 (22:02 +0200)]
#15156: HTMLParser now uses the new "html.entities.html5" dictionary.
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.
Antoine Pitrou [Sun, 24 Jun 2012 19:03:45 +0000 (21:03 +0200)]
Issue #15055: update dictnotes.txt. Patch by Mark Shannon.
Georg Brandl [Sun, 24 Jun 2012 18:07:40 +0000 (20:07 +0200)]
Merge with 3.2.
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.
Georg Brandl [Sun, 24 Jun 2012 18:02:59 +0000 (20:02 +0200)]
Merge with 3.2.
Georg Brandl [Sun, 24 Jun 2012 18:01:05 +0000 (20:01 +0200)]
Partial backport of
612f34e31270 : fix spacing error in exception message.
Georg Brandl [Sun, 24 Jun 2012 17:56:31 +0000 (19:56 +0200)]
urllib.request: fix spacing errors in exception/warning messages.
Éric Araujo [Sun, 24 Jun 2012 17:54:22 +0000 (13:54 -0400)]
Branch merge
Éric Araujo [Sun, 24 Jun 2012 17:53:48 +0000 (13:53 -0400)]
Fix markup
Éric Araujo [Sun, 24 Jun 2012 17:53:41 +0000 (13:53 -0400)]
Fix typos
É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
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).
Stefan Krah [Sun, 24 Jun 2012 17:04:35 +0000 (19:04 +0200)]
Issue #15102: Fix paths of python executables.
Georg Brandl [Sun, 24 Jun 2012 16:12:24 +0000 (18:12 +0200)]
Alpha -> Beta
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.
Georg Brandl [Sun, 24 Jun 2012 15:39:05 +0000 (17:39 +0200)]
Small whitespace fixes for shutil.rmtree() docs.
Georg Brandl [Sun, 24 Jun 2012 15:37:07 +0000 (17:37 +0200)]
#444582: fix example and rewrap docs a bit.
Georg Brandl [Sun, 24 Jun 2012 15:31:06 +0000 (17:31 +0200)]
Add 3.2.3 version to the license table.
Antoine Pitrou [Sun, 24 Jun 2012 15:23:12 +0000 (17:23 +0200)]
Merge
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.
Antoine Pitrou [Sun, 24 Jun 2012 15:22:50 +0000 (17:22 +0200)]
Use -W on the Windows 64 buildbots
Georg Brandl [Sun, 24 Jun 2012 14:37:59 +0000 (16:37 +0200)]
Refactor the venv API docs into a real API doc style.
Antoine Pitrou [Sun, 24 Jun 2012 14:28:18 +0000 (16:28 +0200)]
Fix test to really run behind a NNTP virus checker
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.
Antoine Pitrou [Sun, 24 Jun 2012 14:21:10 +0000 (16:21 +0200)]
Simplify wording.
Hynek Schlawack [Sun, 24 Jun 2012 14:21:22 +0000 (16:21 +0200)]
Remove debug output from test_shutil
Antoine Pitrou [Sun, 24 Jun 2012 14:18:48 +0000 (16:18 +0200)]
Formatting
Georg Brandl [Sun, 24 Jun 2012 14:15:46 +0000 (16:15 +0200)]
Small wording update from Larry.
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()
Georg Brandl [Sun, 24 Jun 2012 14:11:23 +0000 (16:11 +0200)]
Merge heads.
Georg Brandl [Sun, 24 Jun 2012 14:10:47 +0000 (16:10 +0200)]
Merge heads.
Georg Brandl [Sun, 24 Jun 2012 14:07:33 +0000 (16:07 +0200)]
Improve hmac.compare_digest() docstring and documentation, courtesy of Larry H.
Antoine Pitrou [Sun, 24 Jun 2012 14:04:38 +0000 (16:04 +0200)]
The buffer protocol doesn't exist (in the glossary anyway).
Antoine Pitrou [Sun, 24 Jun 2012 14:03:50 +0000 (16:03 +0200)]
Larry's suggested rewording of the compare_digest() docs.
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).
Georg Brandl [Sun, 24 Jun 2012 12:05:40 +0000 (14:05 +0200)]
Fix use of class markup.
Georg Brandl [Sun, 24 Jun 2012 11:58:31 +0000 (13:58 +0200)]
Whitespace cleanup.
Georg Brandl [Sun, 24 Jun 2012 11:55:35 +0000 (13:55 +0200)]
Remove unused variable.
Georg Brandl [Sun, 24 Jun 2012 11:54:51 +0000 (13:54 +0200)]
Fix a refleak in
c82451eeb595 .
Christian Heimes [Sun, 24 Jun 2012 11:48:32 +0000 (13:48 +0200)]
Issue #15061: Re-implemented hmac.compare_digest() in C
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).
Georg Brandl [Sun, 24 Jun 2012 11:31:20 +0000 (13:31 +0200)]
Fix casing of Unix.
Georg Brandl [Sun, 24 Jun 2012 11:29:09 +0000 (13:29 +0200)]
Make the style of the "Availability" sections consistent.
Georg Brandl [Sun, 24 Jun 2012 11:26:22 +0000 (13:26 +0200)]
Actually it is just one function.
Georg Brandl [Sun, 24 Jun 2012 11:24:56 +0000 (13:24 +0200)]
Minor clarification about fdopen().
Georg Brandl [Sun, 24 Jun 2012 11:06:44 +0000 (13:06 +0200)]
Remove attribution; this is for the whatsnew.
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.
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().
Georg Brandl [Sun, 24 Jun 2012 10:50:06 +0000 (12:50 +0200)]
Restore mostly-alphabetic sorting of os functions.
Georg Brandl [Sun, 24 Jun 2012 10:38:14 +0000 (12:38 +0200)]
Note that equivalents are valid for 3.3+ only.
Vinay Sajip [Sun, 24 Jun 2012 10:24:05 +0000 (11:24 +0100)]
Merged upstream changes.
Vinay Sajip [Sun, 24 Jun 2012 10:23:07 +0000 (11:23 +0100)]
Added Windows launcher documentation.
Stefan Krah [Sun, 24 Jun 2012 10:20:03 +0000 (12:20 +0200)]
Speed up _decimal by another 10-15% by caching the thread local context
that was last accessed. In the pi benchmark (64-bit platform, prec=9),
_decimal is now only 1.5x slower than float.
Mark Dickinson [Sun, 24 Jun 2012 10:05:30 +0000 (11:05 +0100)]
In random's test_seedargs: Make sure to include at least one seed object with a negative hash.
Georg Brandl [Sun, 24 Jun 2012 09:57:07 +0000 (11:57 +0200)]
Move Linux-only *xattr() functions to their own subheading.
Georg Brandl [Sun, 24 Jun 2012 09:56:47 +0000 (11:56 +0200)]
Fix typo.