Commit Graph

17679 Commits

Author SHA1 Message Date
Benjamin Peterson f847393308 backout 8b384de4e780, so a proper fix can be considered (#5715) 2011-05-24 12:50:34 -05:00
Benjamin Peterson 48e21fc46f merge 3.1 2011-05-24 12:09:26 -05:00
Benjamin Peterson a7cdb0f218 generally, sockets should be closed after they're used 2011-05-24 12:06:31 -05:00
Charles-François Natali cf057597e6 Issue #5715: In socketserver, close the server socket in the child process. 2011-05-24 18:27:25 +02:00
Charles-François Natali 7b54e7562d Issue #5715: In socketserver, close the server socket in the child process. 2011-05-24 18:23:15 +02:00
Ezio Melotti 84f75c680c #12074: remove the /0 when there are no failures. 2011-05-24 01:00:10 +03:00
Benjamin Peterson 200fe3d747 merge heads 2011-05-23 16:29:50 -05:00
Benjamin Peterson f5fcd33be9 merge 3.1 2011-05-23 16:22:42 -05:00
Victor Stinner a2a895c46c Issue #12074: regrtest displays also the current number of failures 2011-05-23 23:14:05 +02:00
Benjamin Peterson 7963a35b41 correctly lookup __dir__ 2011-05-23 16:11:05 -05:00
Victor Stinner b43dd4b8ca Merge 3.1 2011-05-23 14:57:05 +02:00
Victor Stinner 2cca057284 test_codecs now removes the temporay file (created by the test) 2011-05-23 14:51:42 +02:00
Victor Stinner 3c8d12d6b8 Issue #10801: Remove a debug print() from test_zipfile 2011-05-22 22:12:27 +02:00
Antoine Pitrou a98d26a500 Issue #12138: fix use of transient_internet() in test_urllibnet 2011-05-22 17:35:17 +02:00
Georg Brandl 9c1928f0a9 Merge release branch after 3.2.1rc1. 2011-05-21 17:35:33 +02:00
Victor Stinner 62a68f2dbe test_pydoc: skip PydocServerTest if thread support is disabled 2011-05-20 02:29:13 +02:00
Victor Stinner 4445ec81c1 (Merge 3.1) Issue #12124: zipimport doesn't keep a reference to
zlib.decompress() anymore to be able to unload the module.
2011-05-20 00:18:58 +02:00
Victor Stinner 4925cde1cc Issue #12124: zipimport doesn't keep a reference to zlib.decompress() anymore
to be able to unload the module.
2011-05-20 00:16:09 +02:00
Antoine Pitrou b4410dbea6 Issue #12065: connect_ex() on an SSL socket now returns the original errno
when the socket's timeout expires (it used to return None).
2011-05-18 18:51:06 +02:00
Victor Stinner ae8856fe36 Ooops, add the missing file of the backport of commit 33543b4e0e5d from Python
3.2 (#10801: In zipfile, support different encodings for the header and the
filenames.  Patch by MvL, test by Eli Bendersky.)
2011-05-18 13:48:41 +02:00
Victor Stinner ff1d2f4cc5 Backport commit 33543b4e0e5d from Python 3.2: #10801: In zipfile, support
different encodings for the header and the filenames.  Patch by MvL, test by
Eli Bendersky.
2011-05-18 13:43:23 +02:00
Victor Stinner 3349bca46d Issue #12096: Fix a race condition in test_threading.test_waitfor(). Patch
written by Charles-François Natali.
2011-05-18 00:16:14 +02:00
Ronald Oussoren 5ee0567bb2 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.
2011-05-17 14:48:40 +02:00
Ronald Oussoren 6edd8c1faf (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.
2011-05-17 13:03:54 +02:00
Ronald Oussoren 02a67ac72b 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.
2011-05-17 12:44:54 +02:00
Victor Stinner e5720b989f (Merge 3.1) Issue #11614: Fix test_linecache, cjkencodings_test.py doesn't
exist anymore
2011-05-16 17:20:07 +02:00
Victor Stinner e98f177ca6 Issue #11614: Fix test_linecache, cjkencodings_test.py doesn't exist anymore 2011-05-16 17:18:51 +02:00
Victor Stinner 45323a890a (Merge 3.1) Issue #11614: Fix importlib tests for the new __hello__ module 2011-05-16 16:59:49 +02:00
Victor Stinner 272e24356e Issue #11614: Fix importlib tests for the new __hello__ module 2011-05-16 16:57:18 +02:00
Victor Stinner b67cf161bc (Merge 3.1) Issue #12057: Convert CJK encoding testcase BLOB into multiple text
files
2011-05-16 16:45:15 +02:00
Victor Stinner 033a543ab1 Issue #12057: Convert CJK encoding testcase BLOB into multiple text files 2011-05-16 16:43:38 +02:00
Victor Stinner 9cd6626f3d (Merge 3.1) Issue #11614: import __hello__ prints "Hello World!". Patch written
by Andreas Stührk.
2011-05-16 16:32:33 +02:00
Victor Stinner c77b931196 Issue #11614: import __hello__ prints "Hello World!". Patch written by Andreas
Stührk.
2011-05-16 16:29:35 +02:00
Victor Stinner d0e11ec5b0 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).
2011-05-15 18:57:44 +02:00
Georg Brandl 5673e27e72 Bump to 3.2.1rc1. 2011-05-15 17:52:42 +02:00
Georg Brandl 521143dd6c Update pydoc topics and handle suspicious markup. 2011-05-15 17:51:24 +02:00
Ronald Oussoren 222e89a598 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.
2011-05-15 16:46:11 +02:00
Nadeem Vawda 760155cc52 Merge: Fix copy-paste mistake in new zlib test. 2011-05-15 00:48:57 +02:00
Nadeem Vawda 1161a9ca40 Fix copy-paste mistake in new zlib test. 2011-05-15 00:48:24 +02:00
Gregory P. Smith a3221f8209 fix whitespace 2011-05-14 15:35:19 -07:00
Gregory P. Smith 11ddc999e0 merge heads 2011-05-14 15:33:43 -07:00
Gregory P. Smith 873cab2890 merge heads. 2011-05-14 15:26:35 -07:00
Nadeem Vawda 565d659dcd 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.
2011-05-15 00:20:52 +02:00
Nadeem Vawda 0c3d96ae1d 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.
2011-05-15 00:19:50 +02:00
Gregory P. Smith 12c9d028ed 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.
2011-05-14 15:15:49 -07:00
Kurt B. Kaiser 4b16ff2c44 Merge heads 2011-05-14 17:31:54 -04:00
Kurt B. Kaiser f369b8152d Merge from 3.1
Issue #6378: Further adjust idle.bat to start associated Python
2011-05-14 17:22:14 -04:00
Kurt B. Kaiser dfbe1592db Issue #6378: Further adjust idle.bat to start associated Python 2011-05-14 17:20:09 -04:00
Nadeem Vawda 154bdf92fc Fix memory leaks in zlib.compress() and .decompress().
Also, make sure that test_zlib tests decompress() for overly-large inputs.
2011-05-14 23:07:36 +02:00
Nadeem Vawda 1b8a417d9f Issue #8650: Backport 64-bit safety fixes for compress() and decompress(). 2011-05-14 22:26:55 +02:00
Nadeem Vawda 5eef502de0 Merge: #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
attribute when called without a max_length argument.
2011-05-14 14:15:47 +02:00
Nadeem Vawda 7619e88adb Issue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
attribute when called without a max_length argument.
2011-05-14 14:05:20 +02:00
Ezio Melotti 07352b084c Update __all__ and docstring. 2011-05-14 14:51:18 +03:00
Ezio Melotti e728d72d8a #7960: merge with 3.1. 2011-05-14 08:43:25 +03:00
Ezio Melotti fc778fd067 #7960: fix docstrings for captured_output and captured_stdout. 2011-05-14 08:22:47 +03:00
Ezio Melotti 6b60fb9148 #5723: merge with 3.1. 2011-05-14 06:47:51 +03:00
Ezio Melotti 3c0d8a1cc7 #5723: Improve json tests to be executed with and without accelerations. 2011-05-14 06:38:03 +03:00
Ezio Melotti 3659f27ad3 Merge with 3.1. 2011-05-14 06:23:20 +03:00
Ezio Melotti fec3ad1036 Change import_fresh_module to work with packages. 2011-05-14 06:02:25 +03:00
Victor Stinner e670c889cc Issue #11996: libpython (gdb), replace "py-bt" command by "py-bt-full" and add
a smarter "py-bt" command printing a classic Python traceback.
2011-05-13 17:40:15 +02:00
Georg Brandl cc5ea6860f Merge in changes from 3.2.1b1 release repo. 2011-05-13 06:50:56 +02:00
Antoine Pitrou 00dd182b8e Issue #12062: Fix a flushing bug when doing a certain type of I/O sequence
on a file opened in read+write mode (namely: reading, seeking a bit forward,
writing, then seeking before the previous write but still within buffered
data, and writing again).
2011-05-13 00:16:28 +02:00
Antoine Pitrou 7c40489180 Issue #12062: Fix a flushing bug when doing a certain type of I/O sequence
on a file opened in read+write mode (namely: reading, seeking a bit forward,
writing, then seeking before the previous write but still within buffered
data, and writing again).
2011-05-13 00:13:33 +02:00
Kurt B. Kaiser b00d0c4944 Merge from 3.1 2011-05-12 15:30:18 -04:00
Kurt B. Kaiser 0a42982316 Issue #11896: Save on Close failed despite selecting "Yes" in dialog.
_tkinter.c is returning <class '_tkinter.Tcl_Obj'> sometimes.  Don't use
tkinter.messagebox.Message - use the helper functions which convert to str.
2011-05-12 15:25:24 -04:00
Gregory P. Smith 0ef3e399b8 normalize whitespace. 2011-05-11 22:20:11 -07:00
Gregory P. Smith c9557af441 merge - 7a3f3ad83676 Fixes Issue #12044. 2011-05-11 22:18:23 -07:00
Kurt B. Kaiser 6551baa5a5 Correct version in IDLE NEWS.txt 2011-05-11 13:54:44 -04:00
Kurt B. Kaiser bc3e13818b Merge from 3.1 2011-05-11 13:48:54 -04:00
Kurt B. Kaiser e147806da9 Issue #1028: Tk returns invalid Unicode null in %A: UnicodeDecodeError.
With Tk < 8.5 _tkinter.c:PythonCmd() raised UnicodeDecodeError, caused IDLE to
exit.  Converted to valid Unicode null in PythonCmd().
2011-05-11 12:24:17 -04:00
Victor Stinner ba9c6645f7 Issue #10419: Fix build_scripts command of distutils to handle correctly
non-ASCII scripts. 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.
2011-05-11 00:57:29 +02:00
Victor Stinner 530712625b Issue #11169: compileall module uses repr() to format filenames and paths to
escape surrogate characters and show spaces.
2011-05-11 00:36:28 +02:00
Victor Stinner 1eb4f28c6d Close #10419, issue #6011: build_scripts command of distutils 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.
2011-05-11 00:14:28 +02:00
Ezio Melotti f188bc5d46 #12051: merge with 3.1. 2011-05-11 01:10:27 +03:00
Ezio Melotti 136726537f #12051: Fix segfault in json.dumps() while encoding highly-nested objects using the C accelerations. 2011-05-11 01:02:56 +03:00
Antoine Pitrou ccc87b53db Issue #12054: use support.find_unused_port() instead of reinventing the wheel 2011-05-10 23:37:11 +02:00
Antoine Pitrou 1be815aac4 Issue #8498: In socket.accept(), allow to specify 0 as a backlog value in
order to accept exactly one connection.  Patch by Daniel Evers.
2011-05-10 19:16:29 +02:00
Victor Stinner 17ca323e7c (Merge 3.1) Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional
OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2
protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid.

Optimize also ssl.get_protocol_name(): speed does matter!
2011-05-10 00:48:41 +02:00
Victor Stinner ee18b6f2fd Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional
OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2
protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid.

Optimize also ssl.get_protocol_name(): speed does matter!
2011-05-10 00:38:00 +02:00
Ezio Melotti 219a5dcc78 Merge with 3.1. 2011-05-09 18:40:42 +03:00
Ezio Melotti f9756c2336 Some more tests were incorrectly marked as C specific. 2011-05-09 18:36:53 +03:00
Martin v. Löwis 867754e3e3 merge 11164 2011-05-09 08:10:38 +02:00
Martin v. Löwis 2f48d892d4 Stop trying to use _xmlplus in the xml module. Closes #11164.
Patch by Arfrever Frehtes Taifersar Arahesis.
2011-05-09 08:05:43 +02:00
Ezio Melotti 19f7ca25e5 #11910: merge with 3.1. 2011-05-09 07:27:20 +03:00
Ezio Melotti fd69abb358 Some tests were incorrectly marked as C specific. 2011-05-09 07:20:47 +03:00
Ezio Melotti 8269a44d50 #11910: Fix test_heapq to skip the C tests when _heapq is missing. 2011-05-09 07:15:04 +03:00
Ezio Melotti 313fa9d365 #11910: merge with 3.1. 2011-05-09 06:43:14 +03:00
Ezio Melotti 199e0857f9 #11910: change import_fresh_module to return None when one of the "fresh" modules can not be imported. 2011-05-09 06:41:55 +03:00
Benjamin Peterson 31dc3735a5 merge 3.1 2011-05-08 15:34:24 -05:00
Benjamin Peterson 262c5827a5 put import_fresh_module in __all__ 2011-05-08 15:32:46 -05:00
Georg Brandl da71013c11 Update suspicious ignore file. 2011-05-08 09:10:29 +02:00
Georg Brandl cd79cdc5e6 Bump to 3.2.1b1. 2011-05-08 09:03:36 +02:00
Antoine Pitrou 6ef5dfdb94 Merge 2011-05-07 19:47:24 +02:00
Antoine Pitrou 4d1cd0a0a0 Merge 2011-05-07 19:45:34 +02:00
Antoine Pitrou 5bcc50c1b5 Merge: Issue #11927: SMTP_SSL now uses port 465 by default as documented. 2011-05-07 19:41:33 +02:00
Antoine Pitrou c1d520634a Issue #11927: SMTP_SSL now uses port 465 by default as documented. Patch by Kasun Herath. 2011-05-07 19:39:37 +02:00
Giampaolo Rodola' fde86ff673 merge 2011-05-07 19:35:36 +02:00
Giampaolo Rodola' 24befa87dc merge with 3.1 2011-05-07 19:09:34 +02:00
Giampaolo Rodola' 0b5c21f9c9 #12002 - ftplib's abort() method raises TypeError 2011-05-07 19:03:47 +02:00
Ezio Melotti 4c1aebd88b #5421: merge with 3.1. 2011-05-07 19:50:28 +03:00