]>
granicus.if.org Git - python/log
Georg Brandl [Sat, 21 May 2011 17:43:36 +0000 (19:43 +0200)]
Merge 3.2.1rc1 release changes to default.
Raymond Hettinger [Sat, 21 May 2011 16:37:36 +0000 (09:37 -0700)]
Simplify example
Raymond Hettinger [Sat, 21 May 2011 16:33:45 +0000 (09:33 -0700)]
Simplify example
Vinay Sajip [Sat, 21 May 2011 15:46:41 +0000 (16:46 +0100)]
Issue #12136: Added change to handle non-availability of the ssl module.
Georg Brandl [Sat, 21 May 2011 15:36:20 +0000 (17:36 +0200)]
Set up branch to be rc2 next.
Georg Brandl [Sat, 21 May 2011 15:35:33 +0000 (17:35 +0200)]
Merge release branch after 3.2.1rc1.
Tarek Ziade [Sat, 21 May 2011 13:12:10 +0000 (15:12 +0200)]
fixed the move api in packaging.install, and closing the handle left by mkstemp() in its test module
Tarek Ziade [Sat, 21 May 2011 12:24:14 +0000 (14:24 +0200)]
we want to generate /-separated paths setup.cfg files even under win32
Gregory P. Smith [Sat, 21 May 2011 12:19:42 +0000 (05:19 -0700)]
avoid a compiler warning. the compiler doesn't know that the static
struct guarantees the loop will always be run once to initialize code.
Vinay Sajip [Sat, 21 May 2011 10:32:15 +0000 (11:32 +0100)]
Added SSL test for HTTPHandler.
Tarek Ziade [Sat, 21 May 2011 10:00:10 +0000 (12:00 +0200)]
fixed the way the cfg file markers values are split under win32
Tarek Ziade [Sat, 21 May 2011 09:48:16 +0000 (11:48 +0200)]
fixed the separator issues in packaging/resources+config
Tarek Ziade [Sat, 21 May 2011 08:37:58 +0000 (10:37 +0200)]
fixed a few mocking/cleanup issues in packaging test_util for win32
Victor Stinner [Sat, 21 May 2011 00:20:36 +0000 (02:20 +0200)]
Close #12114: fix a potential deadlock in packaging.util._find_exe_version()
Avoid also zombi processes: Popen.communicate() calls its wait() method.
Vinay Sajip [Fri, 20 May 2011 23:34:51 +0000 (00:34 +0100)]
Added SSL capability to TestHTTPServer.
Ezio Melotti [Fri, 20 May 2011 17:27:54 +0000 (20:27 +0300)]
Fix another ResourceWarning in test_packaging.
Benjamin Peterson [Fri, 20 May 2011 16:49:58 +0000 (11:49 -0500)]
merge 3.2
Benjamin Peterson [Fri, 20 May 2011 16:49:19 +0000 (11:49 -0500)]
merge 3.1
Benjamin Peterson [Fri, 20 May 2011 16:49:06 +0000 (11:49 -0500)]
this should actually be an IOError
Benjamin Peterson [Fri, 20 May 2011 16:43:41 +0000 (11:43 -0500)]
merge heads
Benjamin Peterson [Fri, 20 May 2011 16:42:47 +0000 (11:42 -0500)]
merge 3.2
Benjamin Peterson [Fri, 20 May 2011 16:41:59 +0000 (11:41 -0500)]
merge 3.1
Benjamin Peterson [Fri, 20 May 2011 16:41:13 +0000 (11:41 -0500)]
add example for not using access
Ezio Melotti [Fri, 20 May 2011 16:35:58 +0000 (19:35 +0300)]
Fix more ResourceWarnings in test_packaging moving the join() and server_close() in the stop method.
Charles-François Natali [Fri, 20 May 2011 14:55:06 +0000 (16:55 +0200)]
Issue #
1746656 : make if_nameindex(), if_indextoname() and if_nametoindex()
accept and return str instead of bytes arrays. Add some more tests.
Ezio Melotti [Fri, 20 May 2011 12:06:58 +0000 (15:06 +0300)]
#12072: merge with 3.2.
Ezio Melotti [Fri, 20 May 2011 12:06:32 +0000 (15:06 +0300)]
#12072: merge with 3.1.
Ezio Melotti [Fri, 20 May 2011 12:04:38 +0000 (15:04 +0300)]
#12072: add missing parenthesis in the doc. Patch by Sandro Tosi.
Ezio Melotti [Fri, 20 May 2011 11:13:58 +0000 (14:13 +0300)]
Fix several ResourceWarnings in test_packaging.
Victor Stinner [Fri, 20 May 2011 00:29:55 +0000 (02:29 +0200)]
(Merge 3.2) test_pydoc: skip PydocServerTest if thread support is disabled
Victor Stinner [Fri, 20 May 2011 00:29:13 +0000 (02:29 +0200)]
test_pydoc: skip PydocServerTest if thread support is disabled
Victor Stinner [Thu, 19 May 2011 23:56:42 +0000 (01:56 +0200)]
packaging.tests.test_command_install_data: restore correctly sysconfig._SCHEMES
Victor Stinner [Thu, 19 May 2011 22:33:39 +0000 (00:33 +0200)]
fix packaging tests on Windows: use os.path.join() in glob patterns
Victor Stinner [Thu, 19 May 2011 22:22:39 +0000 (00:22 +0200)]
(Merge 3.2) Issue #12124: zipimport doesn't keep a reference to
zlib.decompress() anymore to be able to unload the module.
Victor Stinner [Thu, 19 May 2011 22:18:58 +0000 (00:18 +0200)]
(Merge 3.1) Issue #12124: zipimport doesn't keep a reference to
zlib.decompress() anymore to be able to unload the module.
Victor Stinner [Thu, 19 May 2011 22:16:09 +0000 (00:16 +0200)]
Issue #12124: zipimport doesn't keep a reference to zlib.decompress() anymore
to be able to unload the module.
Victor Stinner [Thu, 19 May 2011 22:12:10 +0000 (00:12 +0200)]
packaging: fix the constructor of FakePopen
packaging.util requires the env keyword.
Victor Stinner [Thu, 19 May 2011 22:05:58 +0000 (00:05 +0200)]
fix packaging.compiler.msvc9compiler: os.environ['path'] value is also a str
Don't encode the path list
Victor Stinner [Thu, 19 May 2011 21:46:03 +0000 (23:46 +0200)]
fix packaging.compiler.msvc9compiler: os.environ values are str, not bytes
Victor Stinner [Thu, 19 May 2011 19:42:47 +0000 (21:42 +0200)]
Issue #12112: fix the encoding of setup.py in the packaging module
* read: use tokenize.detect_encoding()
* write: use 'utf-8'
Ezio Melotti [Thu, 19 May 2011 19:03:22 +0000 (22:03 +0300)]
Refactor a few tests to use the new requires_zlib decorator.
Ezio Melotti [Thu, 19 May 2011 18:25:10 +0000 (21:25 +0300)]
Skip tests that require zlib in the packaging tests. Also add a requires_zlib decorator to test.support.
Tarek Ziade [Thu, 19 May 2011 17:56:12 +0000 (19:56 +0200)]
Issue #12120, Issue #12119: tests were missing a sys.dont_write_bytecode check
Tarek Ziade [Thu, 19 May 2011 17:07:06 +0000 (19:07 +0200)]
removed unused method in packaging.create
Victor Stinner [Thu, 19 May 2011 16:49:56 +0000 (18:49 +0200)]
Issue #12112: packaging reads/writes metadata using UTF-8
Victor Stinner [Thu, 19 May 2011 16:45:32 +0000 (18:45 +0200)]
Issue #12112: packaging reads and writes setup.cfg using UTF-8
Victor Stinner [Thu, 19 May 2011 13:52:59 +0000 (15:52 +0200)]
package: replace open(fn, 'w').close() by open(fn, 'wb').close()
We don't need to open the files in text mode just to create them (or update
their modification time).
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 [Wed, 18 May 2011 11:48:41 +0000 (13:48 +0200)]
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.)
Victor Stinner [Wed, 18 May 2011 11:43:23 +0000 (13:43 +0200)]
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.
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.
Martin v. Löwis [Mon, 16 May 2011 05:56:32 +0000 (07:56 +0200)]
Add 3.2.1 UUIDs
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 ).
Georg Brandl [Sun, 15 May 2011 15:52:56 +0000 (17:52 +0200)]
Added tag v3.2.1rc1 for changeset
cfa9364997c7
Georg Brandl [Sun, 15 May 2011 15:52:42 +0000 (17:52 +0200)]
Bump to 3.2.1rc1.
Georg Brandl [Sun, 15 May 2011 15:51:24 +0000 (17:51 +0200)]
Update pydoc topics and handle suspicious markup.
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.