]> granicus.if.org Git - python/log
python
13 years agoFix the buildbot breakdown - issue 10050
Senthil Kumaran [Wed, 14 Mar 2012 20:59:56 +0000 (13:59 -0700)]
Fix the buildbot breakdown - issue 10050

13 years agodeprecated the old urllib primitives in 3.3 urllib package - issue 10050
Senthil Kumaran [Wed, 14 Mar 2012 20:43:53 +0000 (13:43 -0700)]
deprecated the old urllib primitives in 3.3 urllib package - issue 10050

13 years agoRemove Python 2 compatibility cruft from unittest.mock
Michael Foord [Wed, 14 Mar 2012 20:30:29 +0000 (13:30 -0700)]
Remove Python 2 compatibility cruft from unittest.mock

13 years agoAnd another one... mock import fix.
Michael Foord [Wed, 14 Mar 2012 20:01:31 +0000 (13:01 -0700)]
And another one... mock import fix.

13 years agoMerge
Michael Foord [Wed, 14 Mar 2012 19:59:08 +0000 (12:59 -0700)]
Merge

13 years agoFix another mock import
Michael Foord [Wed, 14 Mar 2012 19:58:46 +0000 (12:58 -0700)]
Fix another mock import

13 years agoFix import failure in mock test
Michael Foord [Wed, 14 Mar 2012 19:38:06 +0000 (12:38 -0700)]
Fix import failure in mock test

13 years ago#12818: remove escaping of () in quoted strings in formataddr
R David Murray [Wed, 14 Mar 2012 19:31:47 +0000 (15:31 -0400)]
#12818: remove escaping of () in quoted strings in formataddr

The quoting of ()s inside quoted strings is allowed by the RFC, but is not
needed.  There seems to be no reason to add needless escapes.

13 years agoPEP 417: Adding unittest.mock
Michael Foord [Wed, 14 Mar 2012 19:24:34 +0000 (12:24 -0700)]
PEP 417: Adding unittest.mock

13 years ago#14062: fix BytesParser handling of Header objects
R David Murray [Wed, 14 Mar 2012 18:24:22 +0000 (14:24 -0400)]
#14062: fix BytesParser handling of Header objects

This is a different fix than the 3.2 fix, but the new tests are the same.

This also affected smtplib.SMTP.send_message, which calls BytesParser.

13 years ago#14062: fix BytesParser handling of linesep for Header objects
R David Murray [Wed, 14 Mar 2012 18:05:03 +0000 (14:05 -0400)]
#14062: fix BytesParser handling of linesep for Header objects

This also affected smtplib.SMTP.send_message, which calls BytesParser.

13 years agoIssue #13839: When invoked on the command-line, the pstats module now accepts several...
Antoine Pitrou [Wed, 14 Mar 2012 16:47:11 +0000 (17:47 +0100)]
Issue #13839: When invoked on the command-line, the pstats module now accepts several filenames of profile stat files and merges them all.
Patch by Matt Joiner.

13 years agoRevert the patch for issue 3835 because failed on Windows buildbot
Andrew Svetlov [Wed, 14 Mar 2012 16:39:36 +0000 (09:39 -0700)]
Revert the patch for issue 3835 because failed on Windows buildbot

Windows build is compiled with no-threaded tcl/tk by default

13 years ago#14289: merge with 3.2
Georg Brandl [Wed, 14 Mar 2012 07:18:59 +0000 (08:18 +0100)]
#14289: merge with 3.2

13 years agoCloses #14289: put a link to the CHM download page on the docs download page.
Georg Brandl [Wed, 14 Mar 2012 07:18:47 +0000 (08:18 +0100)]
Closes #14289: put a link to the CHM download page on the docs download page.

13 years ago#14283: merge with 3.2
Georg Brandl [Wed, 14 Mar 2012 07:07:29 +0000 (08:07 +0100)]
#14283: merge with 3.2

13 years agoMerge #14291: if a header has non-ascii unicode, default to CTE using utf-8
R David Murray [Wed, 14 Mar 2012 07:03:27 +0000 (03:03 -0400)]
Merge #14291: if a header has non-ascii unicode, default to CTE using utf-8

In Python2, if a unicode string was assigned as the value of a header,
email would automatically CTE encode it using the UTF8 charset.
This capability was lost in the Python3 translation, and this patch
restores it.

Patch by Ali Ikinci, assisted by R. David Murray.

I also added a fix for the mailbox test that was depending (with a comment
that it was a bad idea to so depend) on non-ASCII causing message_from_string
to raise an error.  It now uses support.patch to induce an error during
message serialization.

13 years agoCloses #14283: match() and search() are regex methods, not match methods.
Georg Brandl [Wed, 14 Mar 2012 07:02:43 +0000 (08:02 +0100)]
Closes #14283: match() and search() are regex methods, not match methods.

13 years ago#14291: if a header has non-ascii unicode, default to CTE using utf-8
R David Murray [Wed, 14 Mar 2012 06:59:51 +0000 (02:59 -0400)]
#14291: if a header has non-ascii unicode, default to CTE using utf-8

In Python2, if a unicode string was assigned as the value of a header,
email would automatically CTE encode it using the UTF8 charset.
This capability was lost in the Python3 translation, and this patch
restores it.

Patch by Ali Ikinci, assisted by R. David Murray.

I also added a fix for the mailbox test that was depending (with a comment
that it was a bad idea to so depend) on non-ASCII causing message_from_string
to raise an error.  It now uses support.patch to induce an error during
message serialization.

13 years agoCloses #14298: update section about dict implementation.
Georg Brandl [Wed, 14 Mar 2012 06:50:17 +0000 (07:50 +0100)]
Closes #14298: update section about dict implementation.

13 years agoAvoid main_window unused compiler warning.
Gregory P. Smith [Wed, 14 Mar 2012 06:21:53 +0000 (23:21 -0700)]
Avoid main_window unused compiler warning.

13 years agodefault: closes Issue12365 - Add an example explaining the context manager use case...
Senthil Kumaran [Wed, 14 Mar 2012 02:48:37 +0000 (19:48 -0700)]
default: closes Issue12365 - Add an example explaining the context manager use case of urllib.urlopen

13 years agocloses Issue12365 - Add an example explaining the context manager use case of urllib...
Senthil Kumaran [Wed, 14 Mar 2012 02:47:51 +0000 (19:47 -0700)]
closes Issue12365 - Add an example explaining the context manager use case of urllib.urlopen

13 years agoIssue10050 - urlretrieve uses newer urlopen. reporthook of urlretrieve takes, block...
Senthil Kumaran [Wed, 14 Mar 2012 02:29:33 +0000 (19:29 -0700)]
Issue10050 - urlretrieve uses newer urlopen. reporthook of urlretrieve takes, block number, block read size, file_size

13 years agoIssue #989712: Support using Tk without a mainloop.
Andrew Svetlov [Wed, 14 Mar 2012 01:36:13 +0000 (18:36 -0700)]
Issue #989712: Support using Tk without a mainloop.

13 years agoWhat's New in Python 3.3: Repeat the dict lookup change in Porting section
Victor Stinner [Tue, 13 Mar 2012 23:40:57 +0000 (00:40 +0100)]
What's New in Python 3.3: Repeat the dict lookup change in Porting section

13 years agoFix doc of datetime.date*.*fromtimestamp() methods
Victor Stinner [Tue, 13 Mar 2012 23:39:29 +0000 (00:39 +0100)]
Fix doc of datetime.date*.*fromtimestamp() methods

13 years agoIssue #14180: Fix the select module to handle correctly the Windows timeval
Victor Stinner [Tue, 13 Mar 2012 23:20:51 +0000 (00:20 +0100)]
Issue #14180: Fix the select module to handle correctly the Windows timeval
structure. timeval.tv_sec is a long on Windows, not time_t.

13 years agoIssue #14180: TestDateTime.test_microsecond_rounding() handles localtime() and
Victor Stinner [Tue, 13 Mar 2012 23:17:05 +0000 (00:17 +0100)]
Issue #14180: TestDateTime.test_microsecond_rounding() handles localtime() and
gmtime() failure on Windows

13 years agoIssue #14180: datetime.date.fromtimestamp(), datetime.datetime.fromtimestamp()
Victor Stinner [Tue, 13 Mar 2012 23:15:40 +0000 (00:15 +0100)]
Issue #14180: datetime.date.fromtimestamp(), datetime.datetime.fromtimestamp()
and datetime.datetime.utcfromtimestamp() now raise an OSError instead of
ValueError if localtime() or gmtime() failed.

13 years ago#8315: add automatic unittest test discovery in test.test_email
R David Murray [Tue, 13 Mar 2012 22:02:22 +0000 (18:02 -0400)]
#8315: add automatic unittest test discovery in test.test_email

13 years agomerge 3.2
Benjamin Peterson [Tue, 13 Mar 2012 21:49:36 +0000 (16:49 -0500)]
merge 3.2

13 years agomerge heads
Benjamin Peterson [Tue, 13 Mar 2012 21:46:35 +0000 (16:46 -0500)]
merge heads

13 years agomerge heads
Benjamin Peterson [Tue, 13 Mar 2012 21:46:09 +0000 (16:46 -0500)]
merge heads

13 years agoMerge 3.2
Martin v. Löwis [Tue, 13 Mar 2012 21:34:04 +0000 (14:34 -0700)]
Merge 3.2

13 years agoIssue #5219: Prevent event handler cascade in IDLE.
Martin v. Löwis [Tue, 13 Mar 2012 21:32:29 +0000 (14:32 -0700)]
Issue #5219: Prevent event handler cascade in IDLE.
Patch by Roger Serwy.

13 years agoIssue #5219: Prevent event handler cascade in IDLE.
Martin v. Löwis [Tue, 13 Mar 2012 21:18:36 +0000 (14:18 -0700)]
Issue #5219: Prevent event handler cascade in IDLE.
Patch by Roger Serwy.

13 years agomerge 3.2
Benjamin Peterson [Tue, 13 Mar 2012 21:13:35 +0000 (16:13 -0500)]
merge 3.2

13 years agomerge heads
Benjamin Peterson [Tue, 13 Mar 2012 21:13:21 +0000 (16:13 -0500)]
merge heads

13 years agofix indentation
Benjamin Peterson [Tue, 13 Mar 2012 21:13:09 +0000 (16:13 -0500)]
fix indentation

13 years agoIssue #3835: Refuse to use unthreaded Tcl in threaded Python.
Martin v. Löwis [Tue, 13 Mar 2012 20:59:15 +0000 (13:59 -0700)]
Issue #3835: Refuse to use unthreaded Tcl in threaded Python.
Patch by Guilherme Polo and Andrew Svetlov.

13 years agoIssue #2843: Add new Tk API to Tkinter.
Martin v. Löwis [Tue, 13 Mar 2012 20:40:42 +0000 (13:40 -0700)]
Issue #2843: Add new Tk API to Tkinter.
Patch by Guilherme Polo and Andrew Svetlov.

13 years agoIssue #14184: merge
Ned Deily [Tue, 13 Mar 2012 18:31:36 +0000 (11:31 -0700)]
Issue #14184: merge

13 years agoIssue #14184: Increase the default stack size for secondary threads on
Ned Deily [Tue, 13 Mar 2012 18:18:18 +0000 (11:18 -0700)]
Issue #14184: Increase the default stack size for secondary threads on
Mac OS X to prevent interpreter crashes when compiled on 10.7.

13 years agoIssue #14180: Fix an invalid rounding when compiler optimization are enabled
Victor Stinner [Tue, 13 Mar 2012 18:12:23 +0000 (19:12 +0100)]
Issue #14180: Fix an invalid rounding when compiler optimization are enabled

Use volatile keyword to disable localy unsafe float optimizations.

13 years agoIssue #14180: Fix pythoncore.vcproj, Modules/_time.[ch] have been removed
Victor Stinner [Tue, 13 Mar 2012 16:42:18 +0000 (17:42 +0100)]
Issue #14180: Fix pythoncore.vcproj, Modules/_time.[ch] have been removed

13 years agoIssue #14180: Fix another typo in kqueue_queue_control()
Victor Stinner [Tue, 13 Mar 2012 15:25:35 +0000 (16:25 +0100)]
Issue #14180: Fix another typo in kqueue_queue_control()

13 years agoIssue #14180: Fix select.select() compilation on BSD and a typo in kqueue_queue_control()
Victor Stinner [Tue, 13 Mar 2012 14:29:08 +0000 (15:29 +0100)]
Issue #14180: Fix select.select() compilation on BSD and a typo in kqueue_queue_control()

13 years agoIssue #14180: Remove commented code
Victor Stinner [Tue, 13 Mar 2012 12:50:34 +0000 (13:50 +0100)]
Issue #14180: Remove commented code

13 years agoClose #14180: Factorize code to convert a number of seconds to time_t, timeval or...
Victor Stinner [Tue, 13 Mar 2012 12:35:55 +0000 (13:35 +0100)]
Close #14180: Factorize code to convert a number of seconds to time_t, timeval or timespec

time.ctime(), gmtime(), time.localtime(), datetime.date.fromtimestamp(),
datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now
raises an OverflowError, instead of a ValueError, if the timestamp does not fit
in time_t.

datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now
round microseconds towards zero instead of rounding to nearest with ties going
away from zero.

13 years agoMerged upstream change.
Vinay Sajip [Tue, 13 Mar 2012 12:18:19 +0000 (12:18 +0000)]
Merged upstream change.

13 years agoMerged upstream change.
Vinay Sajip [Tue, 13 Mar 2012 12:15:46 +0000 (12:15 +0000)]
Merged upstream change.

13 years agoCloses #14267: Merged fix from 3.2.
Vinay Sajip [Tue, 13 Mar 2012 12:15:09 +0000 (12:15 +0000)]
Closes #14267: Merged fix from 3.2.

13 years agoCloses #14267: Corrected computation of rollover filename.
Vinay Sajip [Tue, 13 Mar 2012 12:10:33 +0000 (12:10 +0000)]
Closes #14267: Corrected computation of rollover filename.

13 years agomerge to 3.3 - Fix closes Issue14281 - Test for cgi.escape by Brian Landers
Senthil Kumaran [Tue, 13 Mar 2012 08:51:20 +0000 (01:51 -0700)]
merge to 3.3 - Fix closes Issue14281 - Test for cgi.escape by Brian Landers

13 years ago3.2 - Fix closes Issue14281 - Test for cgi.escape by Brian Landers
Senthil Kumaran [Tue, 13 Mar 2012 08:50:27 +0000 (01:50 -0700)]
3.2 - Fix closes Issue14281 - Test for cgi.escape by Brian Landers

13 years agomerge heads
Senthil Kumaran [Tue, 13 Mar 2012 07:16:58 +0000 (00:16 -0700)]
merge heads

13 years agomerge heads
Senthil Kumaran [Tue, 13 Mar 2012 07:16:17 +0000 (00:16 -0700)]
merge heads

13 years agomerge heads
Senthil Kumaran [Tue, 13 Mar 2012 07:14:59 +0000 (00:14 -0700)]
merge heads

13 years agomerge heads
Senthil Kumaran [Tue, 13 Mar 2012 07:14:25 +0000 (00:14 -0700)]
merge heads

13 years agoMerge
Michael Foord [Tue, 13 Mar 2012 07:14:19 +0000 (00:14 -0700)]
Merge

13 years agoFix unittest test discovery for Jython
Michael Foord [Tue, 13 Mar 2012 07:09:54 +0000 (00:09 -0700)]
Fix unittest test discovery for Jython

13 years ago#8942: add test for __path__ contents in zipimport tests
R David Murray [Tue, 13 Mar 2012 01:16:33 +0000 (21:16 -0400)]
#8942: add test for __path__ contents in zipimport tests

Patch by Tatiana Al-Chueyr.

13 years agoIssue #1178863: Separate initialisation from setting when initializing
Martin v. Löwis [Tue, 13 Mar 2012 00:47:35 +0000 (17:47 -0700)]
Issue #1178863: Separate initialisation from setting when initializing
Tkinter.Variables; harmonize exceptions to ValueError; only delete variables
that have not been deleted; assert that variable names are strings
Patch by Andrew Svetlov.

13 years agocloses #14259 re.finditer() now takes keyword arguments: pos, endpos.
Sean Reifschneider [Tue, 13 Mar 2012 00:22:38 +0000 (18:22 -0600)]
closes #14259 re.finditer() now takes keyword arguments: pos, endpos.
Contrary to the documentation, finditer() did not take pos and endpos
keyword arguments.

13 years agoTry to fix compilation of Python-ast.c on Visual Studio 2008
Victor Stinner [Tue, 13 Mar 2012 00:17:31 +0000 (01:17 +0100)]
Try to fix compilation of Python-ast.c on Visual Studio 2008

13 years ago#14179: merge with 3.2.
Ezio Melotti [Mon, 12 Mar 2012 23:33:30 +0000 (01:33 +0200)]
#14179: merge with 3.2.

13 years ago#14179: add tests for re.compile. Patch by Florian Mladitsch.
Ezio Melotti [Mon, 12 Mar 2012 23:29:48 +0000 (01:29 +0200)]
#14179: add tests for re.compile.  Patch by Florian Mladitsch.

13 years agoIssue #14104: Implement time.monotonic() on Mac OS X,
Victor Stinner [Mon, 12 Mar 2012 23:25:42 +0000 (00:25 +0100)]
Issue #14104: Implement time.monotonic() on Mac OS X,
patch written by Nicholas Riley.

13 years agominor PEP7-related fix
Łukasz Langa [Mon, 12 Mar 2012 22:41:07 +0000 (23:41 +0100)]
minor PEP7-related fix

13 years agoMerge heads.
Eric V. Smith [Mon, 12 Mar 2012 22:29:06 +0000 (15:29 -0700)]
Merge heads.

13 years agostr.format_map tests don't do what they say: fix to actually implement the intent...
Eric V. Smith [Mon, 12 Mar 2012 22:26:21 +0000 (15:26 -0700)]
str.format_map tests don't do what they say: fix to actually implement the intent of the test. Closes #13450. Patch by Akira Li.

13 years agoMerge
Michael Foord [Mon, 12 Mar 2012 22:25:12 +0000 (15:25 -0700)]
Merge

13 years agoMove adding unittest test discovery command line options into their own method.
Michael Foord [Mon, 12 Mar 2012 22:24:46 +0000 (15:24 -0700)]
Move adding unittest test discovery command line options into their own method.

13 years agoMerge heads.
Eric V. Smith [Mon, 12 Mar 2012 22:18:30 +0000 (15:18 -0700)]
Merge heads.

13 years agostr.format_map tests don't do what they say: fix to actually implement the intent...
Eric V. Smith [Mon, 12 Mar 2012 22:16:22 +0000 (15:16 -0700)]
str.format_map tests don't do what they say: fix to actually implement the intent of the test. Closes #13450.

13 years agoHead merge
Łukasz Langa [Mon, 12 Mar 2012 21:59:49 +0000 (22:59 +0100)]
Head merge

13 years ago#13842: check whether PyUnicode_FromString succeeded
Łukasz Langa [Mon, 12 Mar 2012 21:59:11 +0000 (22:59 +0100)]
#13842: check whether PyUnicode_FromString succeeded

13 years ago#13394: add more tests for the aifc module and use warnings.warn instead of print...
Ezio Melotti [Mon, 12 Mar 2012 21:57:18 +0000 (23:57 +0200)]
#13394: add more tests for the aifc module and use warnings.warn instead of print.  Patch by Oleg Plakhotnyuk.

13 years ago#13394: add more tests for the aifc module. Patch by Oleg Plakhotnyuk.
Ezio Melotti [Mon, 12 Mar 2012 21:52:40 +0000 (23:52 +0200)]
#13394: add more tests for the aifc module.  Patch by Oleg Plakhotnyuk.

13 years agoMerge
Michael Foord [Mon, 12 Mar 2012 20:54:03 +0000 (13:54 -0700)]
Merge

13 years agoRefactor unittest command line handling to always use optparse
Michael Foord [Mon, 12 Mar 2012 20:53:04 +0000 (13:53 -0700)]
Refactor unittest command line handling to always use optparse

13 years agoHead merge.
Łukasz Langa [Mon, 12 Mar 2012 18:59:48 +0000 (19:59 +0100)]
Head merge.

13 years agoFixes #13842: cannot pickle Ellipsis or NotImplemented.
Łukasz Langa [Mon, 12 Mar 2012 18:46:12 +0000 (19:46 +0100)]
Fixes #13842: cannot pickle Ellipsis or NotImplemented.

Thanks for James Sanders for the bug report and the patch.

13 years agoadjust for change in AST type
Benjamin Peterson [Mon, 12 Mar 2012 18:19:19 +0000 (11:19 -0700)]
adjust for change in AST type

13 years agomerge 3.2
Benjamin Peterson [Mon, 12 Mar 2012 18:16:03 +0000 (11:16 -0700)]
merge 3.2

13 years agokill this disabled code
Benjamin Peterson [Mon, 12 Mar 2012 18:15:48 +0000 (11:15 -0700)]
kill this disabled code

13 years agomerge 3.2
Benjamin Peterson [Mon, 12 Mar 2012 18:02:10 +0000 (11:02 -0700)]
merge 3.2

13 years agouse correct naming convention
Benjamin Peterson [Mon, 12 Mar 2012 18:00:41 +0000 (11:00 -0700)]
use correct naming convention

13 years agocloses issue14257 - Grammatical fix
Senthil Kumaran [Mon, 12 Mar 2012 17:05:58 +0000 (10:05 -0700)]
closes issue14257 - Grammatical fix

13 years agocloses issue14257 - Grammatical fix
Senthil Kumaran [Mon, 12 Mar 2012 17:05:34 +0000 (10:05 -0700)]
closes issue14257 - Grammatical fix

13 years agogive the AST class a __dict__
Benjamin Peterson [Mon, 12 Mar 2012 16:46:44 +0000 (09:46 -0700)]
give the AST class a __dict__

13 years agomerge 3.2
Benjamin Peterson [Mon, 12 Mar 2012 16:43:27 +0000 (09:43 -0700)]
merge 3.2

13 years agoallow AST objects to be like its subclasses
Benjamin Peterson [Mon, 12 Mar 2012 16:43:09 +0000 (09:43 -0700)]
allow AST objects to be like its subclasses

13 years agomerge heads
Benjamin Peterson [Mon, 12 Mar 2012 16:28:51 +0000 (09:28 -0700)]
merge heads

13 years agomerge 3.2
Benjamin Peterson [Mon, 12 Mar 2012 16:28:36 +0000 (09:28 -0700)]
merge 3.2

13 years agomerge heads
Benjamin Peterson [Mon, 12 Mar 2012 16:28:26 +0000 (09:28 -0700)]
merge heads

13 years agoevery other ast object has a dict, so I think AST should, too
Benjamin Peterson [Mon, 12 Mar 2012 16:27:36 +0000 (09:27 -0700)]
every other ast object has a dict, so I think AST should, too

13 years agoMerge.
Eric V. Smith [Mon, 12 Mar 2012 05:47:07 +0000 (22:47 -0700)]
Merge.

13 years agoMake test_logging no longer fail if zlib not present. Closes #14256. Patch by Pedro...
Eric V. Smith [Mon, 12 Mar 2012 05:46:04 +0000 (22:46 -0700)]
Make test_logging no longer fail if zlib not present. Closes #14256. Patch by Pedro Kroger.