]>
granicus.if.org Git - python/log
Victor Stinner [Thu, 19 May 2011 13:51:27 +0000 (15:51 +0200)]
packaging: use with open() instead of try/finally: close
Tarek Ziade [Thu, 19 May 2011 13:51:54 +0000 (15:51 +0200)]
fixed the path splitting
Tarek Ziade [Thu, 19 May 2011 13:26:59 +0000 (15:26 +0200)]
Issue #12115: skipping all tests that need threading under a threadless environment
Victor Stinner [Thu, 19 May 2011 13:18:36 +0000 (15:18 +0200)]
Issue #10419, issue #6011: port
6ad356525381 fix from distutils to packaging
build_scripts command of packaging now handles correctly non-ASCII path (path
to the Python executable). Open and write the script in binary mode, but ensure
that the shebang is decodable from UTF-8 and from the encoding of the script.
Victor Stinner [Thu, 19 May 2011 13:09:57 +0000 (15:09 +0200)]
packaging: don't use locale encoding to compute MD5 checksums
Open the file in binary mode or use UTF-8 encoding.
Tarek Ziade [Thu, 19 May 2011 12:46:10 +0000 (14:46 +0200)]
Issue #12113: make sure generated module is not reused on a second run
Tarek Ziade [Thu, 19 May 2011 11:59:45 +0000 (13:59 +0200)]
make sure split() is called before the encoding
Tarek Ziade [Thu, 19 May 2011 11:46:41 +0000 (13:46 +0200)]
Issue #12109 fixing typo in packaging's test_command_upload_docs
Tarek Ziade [Thu, 19 May 2011 11:07:25 +0000 (13:07 +0200)]
initial import of the packaging package in the standard library
Giampaolo Rodola' [Wed, 18 May 2011 19:28:39 +0000 (21:28 +0200)]
os.sendfile() test: fix "AttributeError: 'NoneType' object has no attribute 'Thread'" when running tests with --without-threads option.
reference: http://bugs.python.org/issue10882#msg136257
Antoine Pitrou [Wed, 18 May 2011 18:02:50 +0000 (20:02 +0200)]
Skip test_smtpnet when ssl is not available
Antoine Pitrou [Wed, 18 May 2011 16:58:48 +0000 (18:58 +0200)]
Null merge
Antoine Pitrou [Wed, 18 May 2011 16:58:09 +0000 (18:58 +0200)]
Fix section title
Antoine Pitrou [Wed, 18 May 2011 16:52:20 +0000 (18:52 +0200)]
Issue #12065: connect_ex() on an SSL socket now returns the original errno
when the socket's timeout expires (it used to return None).
Antoine Pitrou [Wed, 18 May 2011 16:51:06 +0000 (18:51 +0200)]
Issue #12065: connect_ex() on an SSL socket now returns the original errno
when the socket's timeout expires (it used to return None).
Antoine Pitrou [Wed, 18 May 2011 16:04:04 +0000 (18:04 +0200)]
Also protect ehlo() and quit() with the transient_internet() context manager
Antoine Pitrou [Wed, 18 May 2011 16:03:09 +0000 (18:03 +0200)]
Issue #8809: The SMTP_SSL constructor and SMTP.starttls() now support
passing a `context` argument pointing to an ssl.SSLContext instance.
Patch by Kasun Herath.
Victor Stinner [Tue, 17 May 2011 22:20:18 +0000 (00:20 +0200)]
(Merge 3.2) Issue #12096: Fix a race condition in
test_threading.test_waitfor(). Patch written by Charles-François Natali.
Victor Stinner [Tue, 17 May 2011 22:16:14 +0000 (00:16 +0200)]
Issue #12096: Fix a race condition in test_threading.test_waitfor(). Patch
written by Charles-François Natali.
Ronald Oussoren [Tue, 17 May 2011 12:52:21 +0000 (14:52 +0200)]
Fixes #11088: IDLE crashes when using F5 to run a script on OSX with Tk 8.5
Without this patch IDLE will crash reliably on OSX when Tkinter
is linked to TkCocoa 8.5.x.
To reproduce:
* Create a new file (script.py) with the following two lines:
x = input('prompt: ')
print(x)
* Save the script
* Run the script using the F5 keyboard shortcut
(running from the menu works fine)
The patch is a fairly crude hack, but we haven't found a better
workaround for this Tk bug yet.
Ronald Oussoren [Tue, 17 May 2011 12:49:44 +0000 (14:49 +0200)]
Fix for issue 10154, merge from 3.2
Ronald Oussoren [Tue, 17 May 2011 12:48:40 +0000 (14:48 +0200)]
Fixes #11088: IDLE crashes when using F5 to run a script on OSX with Tk 8.5
Without this patch IDLE will crash reliably on OSX when Tkinter
is linked to TkCocoa 8.5.x.
To reproduce:
* Create a new file (script.py) with the following two lines:
x = input('prompt: ')
print(x)
* Save the script
* Run the script using the F5 keyboard shortcut
(running from the menu works fine)
The patch is a fairly crude hack, but we haven't found a better
workaround for this Tk bug yet.
Ronald Oussoren [Tue, 17 May 2011 11:03:54 +0000 (13:03 +0200)]
(merge) Fix #10154 and #10090: locale normalizes the UTF-8 encoding to "UTF-8" instead of "UTF8"
On MacOSX and OpenBSD (and possibly other BSDs) "en_US.UTF-8" is a valid locale
while "en_US.UTF8" is not. As the former works on Linux as well it is better
to normalize to that value.
Ronald Oussoren [Tue, 17 May 2011 10:44:54 +0000 (12:44 +0200)]
Fix #10154 and #10090: locale normalizes the UTF-8 encoding to "UTF-8" instead of "UTF8"
On MacOSX and OpenBSD (and possibly other BSDs) "en_US.UTF-8" is a valid locale
while "en_US.UTF8" is not. As the former works on Linux as well it is better
to normalize to that value.
Vinay Sajip [Tue, 17 May 2011 06:41:18 +0000 (07:41 +0100)]
Skip some tests in the absence of multiprocessing.
Vinay Sajip [Tue, 17 May 2011 06:15:53 +0000 (07:15 +0100)]
Skip some more tests in the absence of threading.
Victor Stinner [Mon, 16 May 2011 15:20:47 +0000 (17:20 +0200)]
(Merge 3.2) Issue #11614: Fix test_linecache, cjkencodings_test.py doesn't
exist anymore
Victor Stinner [Mon, 16 May 2011 15:20:07 +0000 (17:20 +0200)]
(Merge 3.1) Issue #11614: Fix test_linecache, cjkencodings_test.py doesn't
exist anymore
Victor Stinner [Mon, 16 May 2011 15:18:51 +0000 (17:18 +0200)]
Issue #11614: Fix test_linecache, cjkencodings_test.py doesn't exist anymore
Victor Stinner [Mon, 16 May 2011 15:00:41 +0000 (17:00 +0200)]
(Merge 3.2) Issue #11614: Fix importlib tests for the new __hello__ module
Victor Stinner [Mon, 16 May 2011 14:59:49 +0000 (16:59 +0200)]
(Merge 3.1) Issue #11614: Fix importlib tests for the new __hello__ module
Victor Stinner [Mon, 16 May 2011 14:57:18 +0000 (16:57 +0200)]
Issue #11614: Fix importlib tests for the new __hello__ module
Victor Stinner [Mon, 16 May 2011 14:50:23 +0000 (16:50 +0200)]
(Merge 3.2) Issue #12057: Convert CJK encoding testcase BLOB into multiple text
files
Victor Stinner [Mon, 16 May 2011 14:45:15 +0000 (16:45 +0200)]
(Merge 3.1) Issue #12057: Convert CJK encoding testcase BLOB into multiple text
files
Victor Stinner [Mon, 16 May 2011 14:43:38 +0000 (16:43 +0200)]
Issue #12057: Convert CJK encoding testcase BLOB into multiple text files
Victor Stinner [Mon, 16 May 2011 14:35:35 +0000 (16:35 +0200)]
(Merge 3.2) Issue #11614: import __hello__ prints "Hello World!". Patch written
by Andreas Stührk.
Victor Stinner [Mon, 16 May 2011 14:32:33 +0000 (16:32 +0200)]
(Merge 3.1) Issue #11614: import __hello__ prints "Hello World!". Patch written
by Andreas Stührk.
Victor Stinner [Mon, 16 May 2011 14:29:35 +0000 (16:29 +0200)]
Issue #11614: import __hello__ prints "Hello World!". Patch written by Andreas
Stührk.
Gregory P. Smith [Sun, 15 May 2011 19:18:23 +0000 (12:18 -0700)]
issue #
1746656 : Fix for OS X. configure and #include changes so that the socket
module compiles again on OS X with its more annoying #include requirements.
Victor Stinner [Sun, 15 May 2011 17:02:34 +0000 (19:02 +0200)]
Null merge 3.2 (fix already applied:
4a82be47a948 +
5060a92a8597 ).
Victor Stinner [Sun, 15 May 2011 16:59:29 +0000 (18:59 +0200)]
Null merge 3.1 (fix already applied:
4a82be47a948 +
5060a92a8597 ).
Victor Stinner [Sun, 15 May 2011 16:57:44 +0000 (18:57 +0200)]
Issue #10756: atexit normalizes the exception before displaying it. Patch by
Andreas Stührk.
Backport a fix already applied to Python 3.2+ (
4a82be47a948 +
5060a92a8597 ).
Ronald Oussoren [Sun, 15 May 2011 15:13:47 +0000 (17:13 +0200)]
(merge from 3.2) Issue #9516: avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is set in shell.
Without this patch python will fail to start properly when the environment
variable MACOSX_DEPLOYMENT_TARGET is set on MacOSX and has a value that is
not compatible with the value during Python's build. This is caused by code
in sysconfig that was only meant to be used in disutils.
Ronald Oussoren [Sun, 15 May 2011 14:50:28 +0000 (16:50 +0200)]
NEWS entry for fix of issue #9516
Ronald Oussoren [Sun, 15 May 2011 14:46:11 +0000 (16:46 +0200)]
Issue #9516: avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is set in shell.
Without this patch python will fail to start properly when the environment
variable MACOSX_DEPLOYMENT_TARGET is set on MacOSX and has a value that is
not compatible with the value during Python's build. This is caused by code
in sysconfig that was only meant to be used in disutils.
Nadeem Vawda [Sun, 15 May 2011 11:16:22 +0000 (13:16 +0200)]
Fix _socket compilation failures on non-Linux buildbots (cf. issue #
1746656 ).
Georg Brandl [Sun, 15 May 2011 08:42:56 +0000 (10:42 +0200)]
Branch merge.
Victor Stinner [Sun, 15 May 2011 08:27:49 +0000 (10:27 +0200)]
(Merge 3.2) Issue #12060: Use sig_atomic_t type and volatile keyword in the
signal module. Patch written by Charles-François Natali.
Victor Stinner [Sun, 15 May 2011 08:27:09 +0000 (10:27 +0200)]
(Merge 3.1) Issue #12060: Use sig_atomic_t type and volatile keyword in the
signal module. Patch written by Charles-François Natali.
Victor Stinner [Sun, 15 May 2011 08:21:59 +0000 (10:21 +0200)]
Issue #12060: Use sig_atomic_t type and volatile keyword in the signal module.
Patch written by Charles-François Natali.
Georg Brandl [Sun, 15 May 2011 07:49:19 +0000 (09:49 +0200)]
Fix-up NEWS: entries made after 3.2.1b1 go into the 3.2.1c1 section.
Gregory P. Smith [Sun, 15 May 2011 07:26:45 +0000 (00:26 -0700)]
Issue #
1746656 : Add if_nameindex, if_nametoindex, if_indextoname
methods to the socket module.
Georg Brandl [Sun, 15 May 2011 06:49:38 +0000 (08:49 +0200)]
Merge #6498 fix from 3.2.
Georg Brandl [Sun, 15 May 2011 06:49:29 +0000 (08:49 +0200)]
Merge #6498 fix from 3.1.
Georg Brandl [Sun, 15 May 2011 06:49:12 +0000 (08:49 +0200)]
Closes #6498: fix several misspellings of "SystemExit" as "SystemError".
Nadeem Vawda [Sat, 14 May 2011 22:49:20 +0000 (00:49 +0200)]
Merge: Fix copy-paste mistake in new zlib test.
Nadeem Vawda [Sat, 14 May 2011 22:48:57 +0000 (00:48 +0200)]
Merge: Fix copy-paste mistake in new zlib test.
Nadeem Vawda [Sat, 14 May 2011 22:48:24 +0000 (00:48 +0200)]
Fix copy-paste mistake in new zlib test.
Gregory P. Smith [Sat, 14 May 2011 22:35:56 +0000 (15:35 -0700)]
fix whitespace
Gregory P. Smith [Sat, 14 May 2011 22:35:19 +0000 (15:35 -0700)]
fix whitespace
Gregory P. Smith [Sat, 14 May 2011 22:33:43 +0000 (15:33 -0700)]
merge heads
Gregory P. Smith [Sat, 14 May 2011 22:32:19 +0000 (15:32 -0700)]
merge heads
Gregory P. Smith [Sat, 14 May 2011 22:26:35 +0000 (15:26 -0700)]
merge heads.
Nadeem Vawda [Sat, 14 May 2011 22:23:40 +0000 (00:23 +0200)]
Merge: #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean.
Raise an OverflowError if the input data is too large, instead of silently
truncating the input and returning an incorrect result.
Nadeem Vawda [Sat, 14 May 2011 22:20:52 +0000 (00:20 +0200)]
Merge: #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean.
Raise an OverflowError if the input data is too large, instead of silently
truncating the input and returning an incorrect result.
Nadeem Vawda [Sat, 14 May 2011 22:19:50 +0000 (00:19 +0200)]
Issue #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean.
Raise an OverflowError if the input data is too large, instead of silently
truncating the input and returning an incorrect result.
Gregory P. Smith [Sat, 14 May 2011 22:15:49 +0000 (15:15 -0700)]
Fixes Issue #12059: Properly handle missing hash functions even when
the expected builtin modules are not present.
This includes a unittest for __get_builtin_constructor() in the face
of such an error.
Gregory P. Smith [Sat, 14 May 2011 22:15:49 +0000 (15:15 -0700)]
Fixes Issue #12059: Properly handle missing hash functions even when
the expected builtin modules are not present.
This includes a unittest for __get_builtin_constructor() in the face
of such an error.
Kurt B. Kaiser [Sat, 14 May 2011 21:51:10 +0000 (17:51 -0400)]
Merge heads(!)
Kurt B. Kaiser [Sat, 14 May 2011 21:50:02 +0000 (17:50 -0400)]
Merge heads (!)
Kurt B. Kaiser [Sat, 14 May 2011 21:46:44 +0000 (17:46 -0400)]
Merge from 3.2
Issue #6378: Further adjust idle.bat to start associated Python
Kurt B. Kaiser [Sat, 14 May 2011 21:31:54 +0000 (17:31 -0400)]
Merge heads
Kurt B. Kaiser [Sat, 14 May 2011 21:30:58 +0000 (17:30 -0400)]
Merge heads
Kurt B. Kaiser [Sat, 14 May 2011 21:22:14 +0000 (17:22 -0400)]
Merge from 3.1
Issue #6378: Further adjust idle.bat to start associated Python
Kurt B. Kaiser [Sat, 14 May 2011 21:20:09 +0000 (17:20 -0400)]
Issue #6378: Further adjust idle.bat to start associated Python
Nadeem Vawda [Sat, 14 May 2011 21:18:07 +0000 (23:18 +0200)]
Merge fix for memory leaks in zlib.compress() and .decompress().
Also, make sure that test_zlib tests decompress() for overly-large inputs.
Nadeem Vawda [Sat, 14 May 2011 21:07:36 +0000 (23:07 +0200)]
Fix memory leaks in zlib.compress() and .decompress().
Also, make sure that test_zlib tests decompress() for overly-large inputs.
Łukasz Langa [Sat, 14 May 2011 20:58:17 +0000 (22:58 +0200)]
Merged rethought pprint example from 3.2.
Łukasz Langa [Sat, 14 May 2011 20:49:10 +0000 (22:49 +0200)]
Merged rethought pprint usage example from 3.1.
Łukasz Langa [Sat, 14 May 2011 20:43:44 +0000 (22:43 +0200)]
pprint usage example rethought.
Nadeem Vawda [Sat, 14 May 2011 20:33:07 +0000 (22:33 +0200)]
Null merge (#8650): zlib.compress() and .decompress() are already 64-bit safe.
Nadeem Vawda [Sat, 14 May 2011 20:32:19 +0000 (22:32 +0200)]
Null merge (#8650): zlib.compress() and .decompress() are already 64-bit safe.
Nadeem Vawda [Sat, 14 May 2011 20:26:55 +0000 (22:26 +0200)]
Issue #8650: Backport 64-bit safety fixes for compress() and decompress().
Nadeem Vawda [Sat, 14 May 2011 12:19:56 +0000 (14:19 +0200)]
Merge: #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
attribute when called without a max_length argument.
Nadeem Vawda [Sat, 14 May 2011 12:15:47 +0000 (14:15 +0200)]
Merge: #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
attribute when called without a max_length argument.
Nadeem Vawda [Sat, 14 May 2011 12:05:20 +0000 (14:05 +0200)]
Issue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
attribute when called without a max_length argument.
Ezio Melotti [Sat, 14 May 2011 11:57:15 +0000 (14:57 +0300)]
Merge with 3.2 and also remove captured_output from __all__ (see #7960).
Ezio Melotti [Sat, 14 May 2011 11:51:18 +0000 (14:51 +0300)]
Update __all__ and docstring.
Ezio Melotti [Sat, 14 May 2011 07:10:53 +0000 (10:10 +0300)]
Skip test in test_fileinput when zlib is missing.
Ezio Melotti [Sat, 14 May 2011 06:24:33 +0000 (09:24 +0300)]
#11979: merge with 3.2.
Ezio Melotti [Sat, 14 May 2011 06:23:52 +0000 (09:23 +0300)]
#11979: merge with 3.1.
Ezio Melotti [Sat, 14 May 2011 06:17:52 +0000 (09:17 +0300)]
#11979: improve wording and markup in sockets howto. Patch by Xavier Morel.
Ezio Melotti [Sat, 14 May 2011 05:44:12 +0000 (08:44 +0300)]
#7960: merge with 3.2.
Ezio Melotti [Sat, 14 May 2011 05:43:25 +0000 (08:43 +0300)]
#7960: merge with 3.1.
Ezio Melotti [Sat, 14 May 2011 05:22:47 +0000 (08:22 +0300)]
#7960: fix docstrings for captured_output and captured_stdout.
Ezio Melotti [Sat, 14 May 2011 03:52:55 +0000 (06:52 +0300)]
#5723: merge with 3.2.
Ezio Melotti [Sat, 14 May 2011 03:47:51 +0000 (06:47 +0300)]
#5723: merge with 3.1.
Ezio Melotti [Sat, 14 May 2011 03:38:03 +0000 (06:38 +0300)]
#5723: Improve json tests to be executed with and without accelerations.
Ezio Melotti [Sat, 14 May 2011 03:24:18 +0000 (06:24 +0300)]
Merge with 3.2.
Ezio Melotti [Sat, 14 May 2011 03:23:20 +0000 (06:23 +0300)]
Merge with 3.1.