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.
Petri Lehtinen [Mon, 9 May 2011 10:24:09 +0000 (12:24 +0200)]
Issue #10811: Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now.
Benjamin Peterson [Mon, 6 Feb 2012 16:29:05 +0000 (11:29 -0500)]
merge heads
Benjamin Peterson [Mon, 6 Feb 2012 16:28:45 +0000 (11:28 -0500)]
bltinmod is borrowed, so it shouldn't be decrefed
Ned Deily [Sun, 5 Feb 2012 23:58:18 +0000 (00:58 +0100)]
Issue #10881: Fix test_site failure with OS X framework builds.
Terry Jan Reedy [Sun, 5 Feb 2012 20:14:20 +0000 (15:14 -0500)]
Issue 964437 Make IDLE help window non-modal.
Patch by Guilherme Polo and Roger Serwy.
Terry Jan Reedy [Sun, 5 Feb 2012 19:31:16 +0000 (14:31 -0500)]
#13933 refine patch using 'new' builtin
Éric Araujo [Sun, 5 Feb 2012 12:41:47 +0000 (13:41 +0100)]
Branch merge
Éric Araujo [Sun, 5 Feb 2012 12:40:08 +0000 (13:40 +0100)]
Really make bztar support in shutil conditional.
This dict entry is added a few lines after if the bzip2 module is
available, but removing this line was forgotten.
Nadeem Vawda [Sun, 5 Feb 2012 12:29:00 +0000 (14:29 +0200)]
Clarify note in BZ2File docs about lack of multi-stream support (issue #1625).
Georg Brandl [Sun, 5 Feb 2012 08:25:22 +0000 (09:25 +0100)]
Closes #13944: fix capitalization of class name.
Meador Inge [Sun, 5 Feb 2012 02:36:48 +0000 (20:36 -0600)]
Issue #12142: Fixed reference cycle when importing ctypes
Nadeem Vawda [Sat, 4 Feb 2012 21:44:49 +0000 (23:44 +0200)]
Issue #1625: Document BZ2File's lack of support for multi-stream inputs.
Ned Deily [Sat, 4 Feb 2012 17:36:43 +0000 (18:36 +0100)]
Issue #13933: IDLE auto-complete did not work with some imported
module, like hashlib. (Patch by Roger Serwy)
Antoine Pitrou [Sat, 4 Feb 2012 15:44:21 +0000 (16:44 +0100)]
Fix failing test on big-endian machines (issue #13806).
Benjamin Peterson [Sat, 4 Feb 2012 14:55:52 +0000 (09:55 -0500)]
threading primitives now have timeouts
Charles-François Natali [Sat, 4 Feb 2012 13:55:53 +0000 (14:55 +0100)]
Issue #8184: Fix a potential file descriptor leak when a
multiprocessing.Connection socket can't be bound.
Benjamin Peterson [Sat, 4 Feb 2012 00:22:31 +0000 (19:22 -0500)]
put returns on their own lines
Benjamin Peterson [Sat, 4 Feb 2012 00:07:30 +0000 (19:07 -0500)]
remove unused import
Ned Deily [Fri, 3 Feb 2012 22:14:37 +0000 (23:14 +0100)]
Issue #13861: Prevent test_apropos* test case failures in test_pydoc.
Vinay Sajip [Fri, 3 Feb 2012 18:23:05 +0000 (18:23 +0000)]
Revert fix for #13807 mistakenly applied in this branch.
Ned Deily [Fri, 3 Feb 2012 01:42:16 +0000 (02:42 +0100)]
Issue #13901: Prevent test_distutils failures on OS X with --enable-shared.
Charles-François Natali [Thu, 2 Feb 2012 19:37:29 +0000 (20:37 +0100)]
Merge.
Charles-François Natali [Thu, 2 Feb 2012 19:31:42 +0000 (20:31 +0100)]
Issue #13817: After fork(), reinit the ad-hoc TLS implementation earlier to fix
a random deadlock when fork() is called in a multithreaded process in debug
mode, and make PyOS_AfterFork() more robust.
Petri Lehtinen [Thu, 2 Feb 2012 18:59:48 +0000 (20:59 +0200)]
Document absoluteness of sys.executable
Closes #13402.
Stefan Krah [Thu, 2 Feb 2012 15:40:52 +0000 (16:40 +0100)]
Issue #1813: Revert workaround for a glibc bug on the Fedora buildbot.
Brian Curtin [Wed, 1 Feb 2012 21:24:10 +0000 (15:24 -0600)]
merge. again.
Brian Curtin [Wed, 1 Feb 2012 21:14:00 +0000 (15:14 -0600)]
Add a hint that CSD == Service Pack.
People searcing for the way to get a "service pack" will never find that we
provide it here, and people that find this function won't know what CSD is
until they run the function. On top of this, they won't know what the value
means unless they really have a service pack installed.
CSD, or Customer Service Diagnostics, is apparently no longer used, and was
rarely used term at that. Most references to it online are from
universities making Windows 2000 and XP service packs available to students.
Petri Lehtinen [Wed, 1 Feb 2012 20:18:19 +0000 (22:18 +0200)]
sqlite3: Handle strings with embedded zeros correctly
Closes #13676.
Raymond Hettinger [Wed, 1 Feb 2012 17:07:40 +0000 (09:07 -0800)]
Add usage note
Terry Jan Reedy [Tue, 31 Jan 2012 07:57:29 +0000 (02:57 -0500)]
whitespace
Terry Jan Reedy [Tue, 31 Jan 2012 07:26:32 +0000 (02:26 -0500)]
#13506 Add '' to path for interactive interpreter by adding with_cwd parameter
to PyShell.PyShell.transfer_path() and changing elsewhere as needed.
Original patches by Marco Scataglini and Roger Serwy.
Gregory P. Smith [Mon, 30 Jan 2012 23:17:33 +0000 (15:17 -0800)]
Fix zip_import.c's read_directory() to use appropriate types for the values
being read from the header vs the values being used by fseek and ftell
(Py_ssize_t for those) and how they are computed. Py_ssize_t is used for
actual file offsets so that files greater than 2gigs could be supported.
Updates the Py_BuildValue format string to match (including several existing
wrong 'i's that should have been 'l's).
Benjamin Peterson [Mon, 30 Jan 2012 01:16:37 +0000 (20:16 -0500)]
ready types returned from PyType_FromSpec
Benjamin Peterson [Mon, 30 Jan 2012 01:13:18 +0000 (20:13 -0500)]
adjust declaration
Antoine Pitrou [Sun, 29 Jan 2012 17:36:34 +0000 (18:36 +0100)]
Issue #13848: open() and the FileIO constructor now check for NUL characters in the file name.
Patch by Hynek Schlawack.
Georg Brandl [Sun, 29 Jan 2012 14:38:47 +0000 (15:38 +0100)]
Fix #13900: resolve self-referential description of a parameter.
Benjamin Peterson [Sun, 29 Jan 2012 01:33:21 +0000 (20:33 -0500)]
remove tests from really old regex module
Antoine Pitrou [Sat, 28 Jan 2012 21:01:59 +0000 (22:01 +0100)]
Issue #13806: The size check in audioop decompression functions was too strict and could reject valid compressed data.
Patch by Oleg Plakhotnyuk.
Antoine Pitrou [Sat, 28 Jan 2012 16:38:34 +0000 (17:38 +0100)]
Issue #13895: fix test_ssl hanging under Ubuntu
Charles-François Natali [Sat, 28 Jan 2012 10:36:04 +0000 (11:36 +0100)]
Issue #13894: Skip test_threading.CRLockTests if _CRLock isn't available. Patch
by Matt Joiner.
Mark Dickinson [Fri, 27 Jan 2012 21:16:01 +0000 (21:16 +0000)]
Issue #13889: Add missing _Py_SET_53BIT_PRECISION_* calls around uses of dtoa.c functions in float round.
Antoine Pitrou [Fri, 27 Jan 2012 16:33:01 +0000 (17:33 +0100)]
Fix intermittent test_ssl failure.
Benjamin Peterson [Fri, 27 Jan 2012 14:14:01 +0000 (09:14 -0500)]
note that get() is not affected by default_factory (closes #13887)
Antoine Pitrou [Fri, 27 Jan 2012 13:07:29 +0000 (14:07 +0100)]
Fix error handling in examples of C API use.
Antoine Pitrou [Fri, 27 Jan 2012 09:52:37 +0000 (10:52 +0100)]
Issue #13812: When a multiprocessing Process child raises an exception, flush stderr after printing the exception traceback.
Antoine Pitrou [Fri, 27 Jan 2012 09:02:55 +0000 (10:02 +0100)]
Clarify that ssl.OP_ALL can be different from OpenSSL's SSL_OP_ALL.
Antoine Pitrou [Fri, 27 Jan 2012 08:50:45 +0000 (09:50 +0100)]
Issue #13885: CVE-2011-3389: the _ssl module would always disable the CBC IV attack countermeasure.
Antoine Pitrou [Fri, 27 Jan 2012 08:48:47 +0000 (09:48 +0100)]
Issue #13885: CVE-2011-3389: the _ssl module would always disable the CBC IV attack countermeasure.
Brett Cannon [Thu, 26 Jan 2012 23:36:08 +0000 (18:36 -0500)]
merge
Brett Cannon [Thu, 26 Jan 2012 23:29:06 +0000 (18:29 -0500)]
Issue #13883: Document all platforms PYTHONCASEOK works on.
Meador Inge [Thu, 26 Jan 2012 14:44:00 +0000 (08:44 -0600)]
- Issue #13840: Fix ctypes.create_string_buffer exception message and docs.
Raymond Hettinger [Thu, 26 Jan 2012 08:14:16 +0000 (00:14 -0800)]
Issue 13870: Fix out of date comment.
Georg Brandl [Wed, 25 Jan 2012 21:36:25 +0000 (22:36 +0100)]
#13852: some small doc fixes.
Benjamin Peterson [Wed, 25 Jan 2012 21:30:18 +0000 (16:30 -0500)]
kill extra word
Benjamin Peterson [Wed, 25 Jan 2012 21:29:03 +0000 (16:29 -0500)]
say bitwise (because I have no idea what a bit-string is)
Vinay Sajip [Wed, 25 Jan 2012 17:41:13 +0000 (17:41 +0000)]
Closes #13859: Replaced reference to StandardError with reference to Exception. Thanks to Matt Joiner for spotting this and submitting a patch.
Antoine Pitrou [Wed, 25 Jan 2012 17:01:45 +0000 (18:01 +0100)]
Port import fixes from 2.7.
Antoine Pitrou [Wed, 25 Jan 2012 02:00:57 +0000 (03:00 +0100)]
Port remaining test fixes, and fix test_importlib too.
Antoine Pitrou [Wed, 25 Jan 2012 00:35:26 +0000 (01:35 +0100)]
Make test work under 32-bit systems, and when invoked through Lib/test/regrtest.py
(rather than `-m test.regrtest`)
Antoine Pitrou [Tue, 24 Jan 2012 16:44:06 +0000 (17:44 +0100)]
Issue #11235: Fix OverflowError when trying to import a source file whose modification time doesn't fit in a 32-bit timestamp.
Benjamin Peterson [Tue, 24 Jan 2012 14:07:06 +0000 (09:07 -0500)]
merge heads
Antoine Pitrou [Tue, 24 Jan 2012 07:59:28 +0000 (08:59 +0100)]
Issue #13772: In os.symlink() under Windows, do not try to guess the link
target's type (file or directory). The detection was buggy and made the
call non-atomic (therefore prone to race conditions).
Georg Brandl [Mon, 23 Jan 2012 19:19:33 +0000 (20:19 +0100)]
#13816: fix two minor style issues. Thanks to Justin Wehnes for the patch.
Benjamin Peterson [Mon, 23 Jan 2012 01:04:46 +0000 (20:04 -0500)]
fix declaration style
Georg Brandl [Sun, 22 Jan 2012 20:31:21 +0000 (21:31 +0100)]
Fix #13834: strip() strips leading and trailing whitespace.
Gregory P. Smith [Sun, 22 Jan 2012 06:05:10 +0000 (22:05 -0800)]
Fix a unittest error seen on NetBSD 5.
Gregory P. Smith [Sun, 22 Jan 2012 05:01:24 +0000 (21:01 -0800)]
Fix FreeBSD, NetBSD and OpenBSD behavior of the issue #8052 fix.
Gregory P. Smith [Sun, 22 Jan 2012 02:20:15 +0000 (18:20 -0800)]
Improve the test for dirfd(), some systems #define it rather than have
an actual function.
Gregory P. Smith [Sat, 21 Jan 2012 23:19:11 +0000 (15:19 -0800)]
Another issue #8052 bugfix (related to previous commit).
"oops" while rearranging the #defines.
Gregory P. Smith [Sat, 21 Jan 2012 23:16:17 +0000 (15:16 -0800)]
Bugfix for issue #8052 fix on *BSD variants.
Many lack readdir64, use readdir. Only use readdir64 on solaris where
it is required to work around a solaris bug.
Gregory P. Smith [Sat, 21 Jan 2012 22:50:11 +0000 (14:50 -0800)]
Add a Misc/NEWS entry for issue 8052.
Gregory P. Smith [Sat, 21 Jan 2012 22:01:08 +0000 (14:01 -0800)]
Fixes issue #8052: The posix subprocess module's close_fds behavior was
suboptimal by closing all possible file descriptors rather than just
the open ones in the child process before exec().
It now closes only the open fds when it is possible to safely determine what
those are.
Gregory P. Smith [Sat, 21 Jan 2012 20:31:25 +0000 (12:31 -0800)]
Avoid the compiler warning about the unused return value.
Antoine Pitrou [Sat, 21 Jan 2012 19:20:49 +0000 (20:20 +0100)]
Issue #12922: fix the TextIOBase documentation to include a description of seek() and tell() methods.
Sandro Tosi [Sat, 21 Jan 2012 09:59:37 +0000 (10:59 +0100)]
fix typo; thanks to Justin Watt from docs@
Senthil Kumaran [Sat, 21 Jan 2012 03:52:48 +0000 (11:52 +0800)]
Fix Issue6631 - Disallow relative file paths in urllib urlopen
Łukasz Langa [Fri, 20 Jan 2012 14:53:10 +0000 (15:53 +0100)]
#13760: picklability tests for configparser exceptions
Vinay Sajip [Fri, 20 Jan 2012 11:27:36 +0000 (11:27 +0000)]
Closes #13807: Merged fix from 3.1.
Vinay Sajip [Fri, 20 Jan 2012 11:23:02 +0000 (11:23 +0000)]
Closes #13807: Now checks for sys.stderr being there before writing to it.
Meador Inge [Fri, 20 Jan 2012 04:06:31 +0000 (22:06 -0600)]
Issue #12949: Document the kwonlyargcount argument for the PyCode_New C API function.
Sandro Tosi [Thu, 19 Jan 2012 21:23:00 +0000 (22:23 +0100)]
Issue #13605: more meaningful example + fixes
Sandro Tosi [Thu, 19 Jan 2012 20:59:55 +0000 (21:59 +0100)]
Issue #13605: add documentation for nargs=argparse.REMAINDER
Sandro Tosi [Thu, 19 Jan 2012 10:29:26 +0000 (11:29 +0100)]
Issue #11948: clarify modules search path