]>
granicus.if.org Git - python/log
Vinay Sajip [Thu, 23 Feb 2012 19:45:52 +0000 (19:45 +0000)]
logging: Added locking in flush() and close() handler methods. Thanks to Fayaz Yusuf Khan for the suggestion.
Benjamin Peterson [Thu, 23 Feb 2012 15:54:28 +0000 (10:54 -0500)]
merge 3.1
Benjamin Peterson [Thu, 23 Feb 2012 15:53:44 +0000 (10:53 -0500)]
update copyright year
Benjamin Peterson [Thu, 23 Feb 2012 15:48:03 +0000 (10:48 -0500)]
merge 3.1 (with 3.1.5rc1 release tag)
Benjamin Peterson [Thu, 23 Feb 2012 15:46:00 +0000 (10:46 -0500)]
Added tag v3.1.5rc1 for changeset
ee26aca3219c
Benjamin Peterson [Thu, 23 Feb 2012 15:45:48 +0000 (10:45 -0500)]
version now 3.1.5rc1
Antoine Pitrou [Wed, 22 Feb 2012 02:33:56 +0000 (03:33 +0100)]
Fix (presumably) test_hash under big-endian systems (PPC).
Antoine Pitrou [Wed, 22 Feb 2012 17:05:43 +0000 (18:05 +0100)]
Issue #14084: Fix a file descriptor leak when importing a module with a bad encoding.
Antoine Pitrou [Wed, 22 Feb 2012 17:03:04 +0000 (18:03 +0100)]
In find_module(), do not silence fileno() and dup() errors.
Nadeem Vawda [Wed, 22 Feb 2012 09:46:41 +0000 (11:46 +0200)]
Issue #14053: Fix "make patchcheck" to work with MQ.
Patch by Francisco Martín Brugué
Georg Brandl [Tue, 21 Feb 2012 21:36:37 +0000 (22:36 +0100)]
merge with 3.2
Georg Brandl [Tue, 21 Feb 2012 21:36:27 +0000 (22:36 +0100)]
Remove reST markup from --help output. Also: O(n**2) is dict construction, not single insertion.
Antoine Pitrou [Tue, 21 Feb 2012 18:03:47 +0000 (19:03 +0100)]
Fix test failure in test_cmd_line by initializing the hash secret at the earliest point.
Martin v. Löwis [Tue, 21 Feb 2012 17:06:22 +0000 (18:06 +0100)]
Issue #6807: Run msisupport.mak earlier.
Martin v. Löwis [Tue, 21 Feb 2012 16:23:55 +0000 (17:23 +0100)]
Issue #10580: Minor grammar change in Windows installer.
Benjamin Peterson [Tue, 21 Feb 2012 16:09:13 +0000 (11:09 -0500)]
merge 3.2
Benjamin Peterson [Tue, 21 Feb 2012 16:08:50 +0000 (11:08 -0500)]
ensure no one tries to hash things before the random seed is found
Petri Lehtinen [Sun, 19 Feb 2012 19:38:00 +0000 (21:38 +0200)]
sqlite3: Fix 64-bit integer handling in user functions on 32-bit architectures
Closes #8033.
Ezio Melotti [Tue, 21 Feb 2012 07:25:00 +0000 (09:25 +0200)]
HTMLParser is now able to handle slashes in the start tag.
Georg Brandl [Mon, 20 Feb 2012 23:32:36 +0000 (00:32 +0100)]
Disable an inspect test: it depends on dict ordering which parameter is reported as duplicate.
Antoine Pitrou [Mon, 20 Feb 2012 23:00:06 +0000 (00:00 +0100)]
Delete the iterator, which could accidentally keep a temporary reference to the yielded element.
Antoine Pitrou [Mon, 20 Feb 2012 22:51:50 +0000 (23:51 +0100)]
Merge
Georg Brandl [Mon, 20 Feb 2012 22:52:16 +0000 (23:52 +0100)]
Dummy-merge with 3.1
Georg Brandl [Mon, 20 Feb 2012 22:49:29 +0000 (23:49 +0100)]
Fix typo in conditional.
Antoine Pitrou [Mon, 20 Feb 2012 22:49:07 +0000 (23:49 +0100)]
Make "regrtest -j" "-R"-aware
Georg Brandl [Mon, 20 Feb 2012 22:37:36 +0000 (23:37 +0100)]
Fix obscure failures of datetime-related tests due to the datetime tests failing to restore the system state completely after testing the pure-Python versions.
Georg Brandl [Mon, 20 Feb 2012 22:09:59 +0000 (23:09 +0100)]
Fix typo.
Georg Brandl [Mon, 20 Feb 2012 21:48:06 +0000 (22:48 +0100)]
Fix dbm_gnu test relying on set order.
Georg Brandl [Mon, 20 Feb 2012 21:08:27 +0000 (22:08 +0100)]
Fix use of deprecated assertRegexpMatches method.
Georg Brandl [Mon, 20 Feb 2012 21:06:02 +0000 (22:06 +0100)]
Remove setting hash seed to regrtest's random seed and re-execv()ing: this doesn't preserve Python flags and fails from a temp directory.
Georg Brandl [Mon, 20 Feb 2012 21:48:06 +0000 (22:48 +0100)]
Fix dbm_gnu test relying on set order.
Georg Brandl [Mon, 20 Feb 2012 22:09:59 +0000 (23:09 +0100)]
Fix typo.
Georg Brandl [Mon, 20 Feb 2012 22:49:29 +0000 (23:49 +0100)]
Fix typo in conditional.
Georg Brandl [Mon, 20 Feb 2012 21:06:02 +0000 (22:06 +0100)]
Remove setting hash seed to regrtest's random seed and re-execv()ing: this doesn't preserve Python flags and fails from a temp directory.
Georg Brandl [Mon, 20 Feb 2012 21:03:28 +0000 (22:03 +0100)]
Another test_dis dict order dependency.
Georg Brandl [Mon, 20 Feb 2012 20:43:25 +0000 (21:43 +0100)]
Merge with 3.1.
Georg Brandl [Mon, 20 Feb 2012 20:41:03 +0000 (21:41 +0100)]
Fix test_dis dependency on dict order.
Georg Brandl [Mon, 20 Feb 2012 20:37:22 +0000 (21:37 +0100)]
Fix use of deprecated assert_ method.
Georg Brandl [Mon, 20 Feb 2012 20:36:28 +0000 (21:36 +0100)]
Fix "sys.path modified" warning in test_strlit, by not replacing sys.path itself, only its contents.
Georg Brandl [Mon, 20 Feb 2012 20:34:57 +0000 (21:34 +0100)]
Fix bad inheritance in test_subprocess that led to a number of tests being executed twice.
Georg Brandl [Mon, 20 Feb 2012 20:34:31 +0000 (21:34 +0100)]
Run tests with -R on "make test" and the buildbots.
Georg Brandl [Mon, 20 Feb 2012 20:31:46 +0000 (21:31 +0100)]
Merge from 3.1: Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime)
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.
The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
Benjamin Peterson [Mon, 20 Feb 2012 20:20:37 +0000 (15:20 -0500)]
don't rely on the order of module clearing
Georg Brandl [Mon, 20 Feb 2012 18:54:16 +0000 (19:54 +0100)]
Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime)
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.
The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
Vinay Sajip [Mon, 20 Feb 2012 18:35:26 +0000 (18:35 +0000)]
logging: clarified documentation for Handler.handleError.
Éric Araujo [Mon, 20 Feb 2012 00:44:55 +0000 (01:44 +0100)]
Add missing “::” markup.
Also wrap two looong lines.
Sandro Tosi [Sun, 19 Feb 2012 18:54:00 +0000 (19:54 +0100)]
Issue #13605: use print() in argparse nargs example
Sandro Tosi [Sun, 19 Feb 2012 11:30:28 +0000 (12:30 +0100)]
don't split 'Hye-Shik Chang' name; thanks to Sergey from docs@
Sandro Tosi [Sun, 19 Feb 2012 11:28:01 +0000 (12:28 +0100)]
Indent 'File' in memoryview example, so it is correctly highlighted
Benjamin Peterson [Sun, 19 Feb 2012 06:11:56 +0000 (01:11 -0500)]
use Py_CLEAR
Jesus Cea [Sun, 19 Feb 2012 02:54:29 +0000 (03:54 +0100)]
Test for issue #13500
Sandro Tosi [Sat, 18 Feb 2012 15:05:34 +0000 (16:05 +0100)]
fix error in memoryview example; thanks to kan lianlian from docs@
Charles-François Natali [Sat, 18 Feb 2012 13:53:41 +0000 (14:53 +0100)]
Issue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
upon malformed POST request.
Charles-François Natali [Sat, 18 Feb 2012 13:42:57 +0000 (14:42 +0100)]
Issue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
upon malformed POST request.
Terry Jan Reedy [Sat, 18 Feb 2012 00:56:58 +0000 (19:56 -0500)]
Issue 14023 Revert edit to 2.7 version. (I suspect edit is from when we thought
to to makes bytes mutable, before deciding to add bytearrays.)
Ezio Melotti [Sat, 18 Feb 2012 00:01:36 +0000 (02:01 +0200)]
#14020: improve HTMLParser documentation.
Petri Lehtinen [Fri, 17 Feb 2012 19:30:55 +0000 (21:30 +0200)]
Fix a variable scoping error in an sqlite3 test
Closes #11689.
Petri Lehtinen [Thu, 16 Feb 2012 19:39:03 +0000 (21:39 +0200)]
sqlite3: Fix documentation errors concerning Cursor.rowcount
Closes #13995.
Charles-François Natali [Thu, 16 Feb 2012 18:49:48 +0000 (19:49 +0100)]
Issue #13878: Fix random test_sched failures.
Gregory P. Smith [Thu, 16 Feb 2012 08:34:12 +0000 (00:34 -0800)]
don't use assertSameElements.
Gregory P. Smith [Thu, 16 Feb 2012 08:30:50 +0000 (00:30 -0800)]
NEWS entry for previous commit.
Gregory P. Smith [Thu, 16 Feb 2012 08:29:12 +0000 (00:29 -0800)]
Issue #2489: Fix bug in _copy loop that could consume 100% cpu on EOF.
Victor Stinner [Wed, 15 Feb 2012 22:44:03 +0000 (23:44 +0100)]
Issue #13913: Another fix test_pep3120 for the UTF-8 codec name
Sandro Tosi [Wed, 15 Feb 2012 22:14:21 +0000 (23:14 +0100)]
Issue #11836: document multiprocessing.queues.SimpleQueue
Antoine Pitrou [Wed, 15 Feb 2012 21:31:23 +0000 (22:31 +0100)]
Merge
Antoine Pitrou [Wed, 15 Feb 2012 21:25:27 +0000 (22:25 +0100)]
Issue #13014: Fix a possible reference leak in SSLSocket.getpeercert().
Victor Stinner [Wed, 15 Feb 2012 21:24:17 +0000 (22:24 +0100)]
Issue #13913: Fix test_pep3120 for the UTF-8 codec name
Petri Lehtinen [Wed, 15 Feb 2012 20:17:21 +0000 (22:17 +0200)]
Issue #13491: Fix many errors in sqlite3 documentation
Initial patch by Johannes Vogel.
Antoine Pitrou [Wed, 15 Feb 2012 17:53:18 +0000 (18:53 +0100)]
Issue #7644: Add tests for the file argument of NNTP.head() and NNTP.body().
Patch by Hynek Schlawack.
Éric Araujo [Wed, 15 Feb 2012 17:12:12 +0000 (18:12 +0100)]
Fix test failure for shared builds caused by #
1326113 fix
Éric Araujo [Wed, 15 Feb 2012 16:07:49 +0000 (17:07 +0100)]
Improve doc for atexit.register and unregister (#12297)
Éric Araujo [Wed, 15 Feb 2012 15:44:37 +0000 (16:44 +0100)]
Fix parsing of build_ext --libraries option (#
1326113 )
Antoine Pitrou [Wed, 15 Feb 2012 01:52:58 +0000 (02:52 +0100)]
Fix indentation
Antoine Pitrou [Wed, 15 Feb 2012 01:51:43 +0000 (02:51 +0100)]
Issue #13020: Fix a reference leak when allocating a structsequence object fails.
Patch by Suman Saha.
Antoine Pitrou [Wed, 15 Feb 2012 01:42:46 +0000 (02:42 +0100)]
Issue #13015: Fix a possible reference leak in defaultdict.__repr__.
Patch by Suman Saha.
Antoine Pitrou [Tue, 14 Feb 2012 22:29:34 +0000 (23:29 +0100)]
Issue #10287: nntplib now queries the server's CAPABILITIES first before sending MODE READER, and only sends it if not already in READER mode.
Patch by Hynek Schlawack.
Meador Inge [Tue, 14 Feb 2012 04:08:39 +0000 (22:08 -0600)]
Issue #13979: Fix ctypes.util.find_library ldconfig regex
Gregory P. Smith [Tue, 14 Feb 2012 00:41:20 +0000 (16:41 -0800)]
import re for the previous commit.
Gregory P. Smith [Tue, 14 Feb 2012 00:38:37 +0000 (16:38 -0800)]
re.escape os.sep so that \ is interpreted properly in the regex.
Gregory P. Smith [Tue, 14 Feb 2012 00:24:46 +0000 (16:24 -0800)]
Issue #13930: fix a / to use os.sep so that the test works on Windows.
Victor Stinner [Tue, 14 Feb 2012 00:17:45 +0000 (01:17 +0100)]
Issue #13913: normalize utf-8 codec name in UTF-8 decoder
Ezio Melotti [Mon, 13 Feb 2012 18:20:00 +0000 (20:20 +0200)]
Fix an index and clean up comments.
Senthil Kumaran [Mon, 13 Feb 2012 15:30:47 +0000 (23:30 +0800)]
shutil copy module reference doc fix.
Ezio Melotti [Mon, 13 Feb 2012 13:50:37 +0000 (15:50 +0200)]
Improve handling of declarations in HTMLParser.
Ezio Melotti [Mon, 13 Feb 2012 12:11:27 +0000 (14:11 +0200)]
Fix htmlparser tests to always use the right collector.
Ezio Melotti [Mon, 13 Feb 2012 09:24:50 +0000 (11:24 +0200)]
#13993: HTMLParser is now able to handle broken end tags when strict=False.
Gregory P. Smith [Sun, 12 Feb 2012 23:58:36 +0000 (15:58 -0800)]
fix whitespace normalization before pushing.
Gregory P. Smith [Sun, 12 Feb 2012 23:50:21 +0000 (15:50 -0800)]
Issue #13930: Adds ability for 2to3 to write its output to a different
directory tree instead of overwriting the input files. Adds three command
line options: -o/--output-dir, -W/--write-unchanged-files and --add-suffix.
Feature backports into stable release branches for 2to3 are allowed by
a special exemption:
http://mail.python.org/pipermail/python-dev/2011-December/115089.html
Petri Lehtinen [Sun, 12 Feb 2012 19:05:31 +0000 (21:05 +0200)]
Fix sqlite3.Connection.iterdump on tables/fields with reserved names or quotes
Closes #9750
Antoine Pitrou [Sun, 12 Feb 2012 18:14:17 +0000 (19:14 +0100)]
Issue #10287: nntplib now queries the server's CAPABILITIES again after authenticating (since the result may change, according to RFC 4643).
Patch by Hynek Schlawack.
Éric Araujo [Sun, 12 Feb 2012 03:52:21 +0000 (04:52 +0100)]
Fix distutils.filelist.FileList under Windows (#13193).
The code used to call os.path.join to build a regex but without escaping
the backslash, which lead to test failures on Windows. Antoine Pitrou
fixed it in
0a94e2f807c7 by enhancing the code to accept both / and \,
with proper escaping, but in my opinion this goes against the distutils
feature freeze, hence this change.
Éric Araujo [Sun, 12 Feb 2012 03:49:45 +0000 (04:49 +0100)]
Update mention of Subversion in the FAQ.
If I grepped correctly, this was the last outdated place.
Nadeem Vawda [Sat, 11 Feb 2012 21:45:10 +0000 (23:45 +0200)]
Issue #13989: Document that GzipFile does not support text mode.
Also, give a more helpful error message when opened with an invalid mode string.
Benjamin Peterson [Fri, 10 Feb 2012 13:46:54 +0000 (08:46 -0500)]
this is only a borrowed ref in Brett's branch
Ned Deily [Fri, 10 Feb 2012 12:01:08 +0000 (13:01 +0100)]
Issue #13590: On OS X 10.7 and 10.6 with Xcode 4.2, building
Distutils-based packages with C extension modules may fail because
Apple has removed gcc-4.2, the version used to build python.org
64-bit/32-bit Pythons. If the user does not explicitly override
the default C compiler by setting the CC environment variable,
Distutils will now attempt to compile extension modules with clang
if gcc-4.2 is required but not found. Also as a convenience, if
the user does explicitly set CC, substitute its value as the default
compiler in the Distutils LDSHARED configuration variable for OS X.
(Note, the python.org 32-bit-only Pythons use gcc-4.0 and the 10.4u
SDK, neither of which are available in Xcode 4. This change does not
attempt to override settings to support their use with Xcode 4.)
Ezio Melotti [Fri, 10 Feb 2012 08:45:44 +0000 (10:45 +0200)]
#13960: HTMLParser is now able to handle broken comments when strict=False.
Senthil Kumaran [Thu, 9 Feb 2012 10:26:59 +0000 (18:26 +0800)]
Issue #9021 - Introduce copy module better. Doc changes suggested by Terry
Reedy.
Senthil Kumaran [Thu, 9 Feb 2012 09:54:17 +0000 (17:54 +0800)]
Fix Issue #6005: Examples in the socket library documentation use sendall,
where relevant, instead send method.
Charles-François Natali [Wed, 8 Feb 2012 20:29:11 +0000 (21:29 +0100)]
Skip test_threading.test_reinit_tls_after_fork() on platforms where fork()
can't be called reliably from a worker thread.
Vinay Sajip [Mon, 6 Feb 2012 21:24:40 +0000 (21:24 +0000)]
Null merge for reverted fix for #13807.