]> granicus.if.org Git - python/log
python
11 years ago- Merge 3.4
doko@ubuntu.com [Thu, 17 Apr 2014 17:49:00 +0000 (19:49 +0200)]
- Merge 3.4

11 years agoFixes for KFreeBSD and the Hurd:
doko@ubuntu.com [Thu, 17 Apr 2014 17:47:16 +0000 (19:47 +0200)]
Fixes for KFreeBSD and the Hurd:

- Issue #21274: Define PATH_MAX for GNU/Hurd in Python/pythonrun.c.

- Issue #21276: posixmodule: Don't define USE_XATTRS on KFreeBSD and the Hurd.

- Issue #21275: Fix a socket test on KFreeBSD.

11 years ago- fix merge conflict
doko@ubuntu.com [Thu, 17 Apr 2014 16:46:53 +0000 (18:46 +0200)]
- fix merge conflict

11 years agoMerge 3.4
doko@ubuntu.com [Thu, 17 Apr 2014 15:55:03 +0000 (17:55 +0200)]
Merge 3.4

11 years ago- Issue #15234: For BerkelyDB and Sqlite, only add the found library and
doko@ubuntu.com [Thu, 17 Apr 2014 15:52:48 +0000 (17:52 +0200)]
- Issue #15234: For BerkelyDB and Sqlite, only add the found library and
  include directories if they aren't already being searched. This avoids
  an explicit runtime library dependency.

11 years agoAdd a --ciphers option to Lib/test/ssl_servers.py
Antoine Pitrou [Thu, 17 Apr 2014 10:30:14 +0000 (12:30 +0200)]
Add a --ciphers option to Lib/test/ssl_servers.py

11 years agoUse ssl.create_default_context in Lib/test/ssl_servers.py
Antoine Pitrou [Thu, 17 Apr 2014 10:21:36 +0000 (12:21 +0200)]
Use ssl.create_default_context in Lib/test/ssl_servers.py

11 years agosupport setting fpu precision on m68k (closes #20904)
Benjamin Peterson [Thu, 17 Apr 2014 04:00:31 +0000 (00:00 -0400)]
support setting fpu precision on m68k (closes #20904)

Patch from Andreas Schwab.

11 years agomerge 3.4
Senthil Kumaran [Thu, 17 Apr 2014 03:44:03 +0000 (23:44 -0400)]
merge 3.4

11 years agoClarify BROWSER envar behavior in webbrowser.py. Noted by David Turner. Closes #21248
Senthil Kumaran [Thu, 17 Apr 2014 03:43:34 +0000 (23:43 -0400)]
Clarify BROWSER envar behavior in webbrowser.py. Noted by David Turner. Closes #21248

11 years agomerge 3.4
Senthil Kumaran [Thu, 17 Apr 2014 03:33:30 +0000 (23:33 -0400)]
merge 3.4

11 years agoCorrect the URL in the http.client example. Noted by Evens Fortuné. Closes #21229
Senthil Kumaran [Thu, 17 Apr 2014 03:33:02 +0000 (23:33 -0400)]
Correct the URL in the http.client example. Noted by Evens Fortuné. Closes #21229

11 years agoMerge: #18628: clarify index entry for source file encoding declaration.
R David Murray [Thu, 17 Apr 2014 01:50:25 +0000 (21:50 -0400)]
Merge: #18628: clarify index entry for source file encoding declaration.

11 years ago#18628: clarify index entry for source file encoding declaration.
R David Murray [Thu, 17 Apr 2014 01:48:04 +0000 (21:48 -0400)]
#18628: clarify index entry for source file encoding declaration.

Patch by Sam Lucidi.

11 years agoFix Tools/scripts/generate_opcode_h.py from issue #17861 to work correctly
Thomas Wouters [Wed, 16 Apr 2014 23:13:29 +0000 (01:13 +0200)]
Fix Tools/scripts/generate_opcode_h.py from issue #17861 to work correctly
when building in a separate object tree. More people should build this way.
This may still fail if the source is unwritable, I haven't tested that yet.

11 years agoRemoves unused varargs and varkwargs from assert_not_called().
Kushal Das [Wed, 16 Apr 2014 20:24:07 +0000 (01:54 +0530)]
Removes unused varargs and varkwargs from assert_not_called().

11 years agomerge 3.4
Benjamin Peterson [Wed, 16 Apr 2014 20:17:16 +0000 (16:17 -0400)]
merge 3.4

11 years agoremove superfluous and useless line
Benjamin Peterson [Wed, 16 Apr 2014 20:16:37 +0000 (16:16 -0400)]
remove superfluous and useless line

11 years agomerge 3.4
Benjamin Peterson [Wed, 16 Apr 2014 20:07:49 +0000 (16:07 -0400)]
merge 3.4

11 years agouse the called property of the run_pip mock rather than an assertion method that...
Benjamin Peterson [Wed, 16 Apr 2014 20:06:39 +0000 (16:06 -0400)]
use the called property of the run_pip mock rather than an assertion method that doesn't exist

11 years agoCloses Issue 21262: New method assert_not_called for Mock.
Kushal Das [Wed, 16 Apr 2014 20:06:14 +0000 (01:36 +0530)]
Closes Issue 21262: New method assert_not_called for Mock.

It raises AssertionError if the mock has been called.

11 years agoCloses Issue 21238: New keyword argument `unsafe` to Mock.
Kushal Das [Wed, 16 Apr 2014 18:02:21 +0000 (23:32 +0530)]
Closes Issue 21238: New keyword argument `unsafe` to Mock.

It raises `AttributeError` incase of an attribute startswith assert
or assret.

11 years agomerge 3.4
Senthil Kumaran [Wed, 16 Apr 2014 17:56:41 +0000 (13:56 -0400)]
merge 3.4

11 years agoAddress issue 18229 - Explain http.server.BaseHTTPRequestHandler's .headers attribute...
Senthil Kumaran [Wed, 16 Apr 2014 17:56:19 +0000 (13:56 -0400)]
Address issue 18229 - Explain http.server.BaseHTTPRequestHandler's .headers attribute further.

Initial patch by Caelyn McAulay.

11 years agoIssue #20896: ssl.get_server_certificate() now uses PROTOCOL_SSLv23, not PROTOCOL_SSL...
Antoine Pitrou [Wed, 16 Apr 2014 16:56:28 +0000 (18:56 +0200)]
Issue #20896: ssl.get_server_certificate() now uses PROTOCOL_SSLv23, not PROTOCOL_SSLv3, for maximum compatibility.

11 years agoTry to fix buildbot failures on old OpenSSLs (< 1.0.0) - followup to issue #21015
Antoine Pitrou [Wed, 16 Apr 2014 16:34:01 +0000 (18:34 +0200)]
Try to fix buildbot failures on old OpenSSLs (< 1.0.0) - followup to issue #21015

11 years agoTry to fix buildbot failures on old OpenSSLs (< 1.0.0) - followup to issue #21015
Antoine Pitrou [Wed, 16 Apr 2014 16:33:39 +0000 (18:33 +0200)]
Try to fix buildbot failures on old OpenSSLs (< 1.0.0) - followup to issue #21015

11 years ago#6490: Expand documentation for os.popen().
Andrew Kuchling [Wed, 16 Apr 2014 13:10:53 +0000 (09:10 -0400)]
#6490: Expand documentation for os.popen().

Patch by Sam Kimbrel.

11 years agoMerge with 3.4
Terry Jan Reedy [Wed, 16 Apr 2014 03:44:37 +0000 (23:44 -0400)]
Merge with 3.4

11 years ago#18566: Whitespace
Terry Jan Reedy [Wed, 16 Apr 2014 03:44:14 +0000 (23:44 -0400)]
#18566: Whitespace

11 years agoMerge with 3.4
Terry Jan Reedy [Wed, 16 Apr 2014 03:38:44 +0000 (23:38 -0400)]
Merge with 3.4

11 years agoIssue #18566: Clarify unittest setUp, tearDown doc. Patch by Nitika Agarwal.
Terry Jan Reedy [Wed, 16 Apr 2014 03:38:18 +0000 (23:38 -0400)]
Issue #18566: Clarify unittest setUp, tearDown doc. Patch by Nitika Agarwal.

11 years agoClose issue #8931: Make alternate formatting for 'c' raise an exception. Patch by...
Eric V. Smith [Wed, 16 Apr 2014 02:37:55 +0000 (22:37 -0400)]
Close issue #8931: Make alternate formatting for 'c' raise an exception. Patch by Torsten Landschoff.

11 years ago#20103: Rewrite description of itertools.accumulate().
Andrew Kuchling [Wed, 16 Apr 2014 02:28:40 +0000 (22:28 -0400)]
#20103: Rewrite description of itertools.accumulate().

Patch by Christian Hudon.

11 years agoMerge from 3.4
Andrew Kuchling [Wed, 16 Apr 2014 01:21:56 +0000 (21:21 -0400)]
Merge from 3.4

11 years agoMerge #20874 fix.
R David Murray [Wed, 16 Apr 2014 00:30:00 +0000 (20:30 -0400)]
Merge #20874 fix.

11 years ago#20874: reflow paragraph.
R David Murray [Wed, 16 Apr 2014 00:26:54 +0000 (20:26 -0400)]
#20874: reflow paragraph.

11 years ago#20874: update tutorial wording: sophisticated line editing is now standard.
R David Murray [Wed, 16 Apr 2014 00:25:18 +0000 (20:25 -0400)]
#20874: update tutorial wording: sophisticated line editing is now standard.

Patch by Rafael Mejia.

11 years agoCloses #21245: merged update from 3.4.
Vinay Sajip [Tue, 15 Apr 2014 22:13:54 +0000 (23:13 +0100)]
Closes #21245: merged update from 3.4.

11 years agoIssue #21245: updated documentation on exception() method and function.
Vinay Sajip [Tue, 15 Apr 2014 22:13:12 +0000 (23:13 +0100)]
Issue #21245: updated documentation on exception() method and function.

11 years agoMerge
Michael Foord [Tue, 15 Apr 2014 21:22:22 +0000 (17:22 -0400)]
Merge

11 years agoCloses issue 21239. unittest.mock.patch.stopall() did not work deterministically...
Michael Foord [Tue, 15 Apr 2014 21:21:08 +0000 (17:21 -0400)]
Closes issue 21239. unittest.mock.patch.stopall() did not work deterministically when the same name was patched multiple times.

11 years ago#1704474: mark refleak test as specific to CPython
Andrew Kuchling [Tue, 15 Apr 2014 20:44:43 +0000 (16:44 -0400)]
#1704474: mark refleak test as specific to CPython

Patch by Christian Hudon.

11 years ago#15840: make docs consistent by saying operations on closed files raise ValueError.
Andrew Kuchling [Wed, 16 Apr 2014 01:11:36 +0000 (21:11 -0400)]
#15840: make docs consistent by saying operations on closed files raise ValueError.

Patch by Caelyn McAulay.

Neither Caelyn nor I could find any cases in 2.7 or 3.4/5 where an
operation on a closed stream raised IOError; generally the C
implementations have a macro to check for the stream being closed, and
these macros all raised ValueError.  If we find any, a new bug should
be opened.

11 years agoMerge.
Stefan Krah [Tue, 15 Apr 2014 20:41:36 +0000 (22:41 +0200)]
Merge.

11 years agoSkip test_enums in the absence of threading.
Stefan Krah [Tue, 15 Apr 2014 20:40:06 +0000 (22:40 +0200)]
Skip test_enums in the absence of threading.

11 years agomerge 3.4
Senthil Kumaran [Tue, 15 Apr 2014 20:37:14 +0000 (16:37 -0400)]
merge 3.4

11 years agoRun test_urllib2_localnet tests using unittest.main().
Senthil Kumaran [Tue, 15 Apr 2014 20:36:43 +0000 (16:36 -0400)]
Run test_urllib2_localnet tests using unittest.main().

Capture threads in the setUpModule and cleanup threads in the tearDownModule.

11 years agoMerge
Kushal Das [Tue, 15 Apr 2014 19:52:52 +0000 (01:22 +0530)]
Merge

11 years agoCloses Issue 21222.
Kushal Das [Tue, 15 Apr 2014 19:35:50 +0000 (01:05 +0530)]
Closes Issue 21222.

Passing name keyword argument to mock.create_autospec now works.

11 years agoMerge 3.4 branch.
doko@ubuntu.com [Tue, 15 Apr 2014 18:38:28 +0000 (20:38 +0200)]
Merge 3.4 branch.

11 years ago- Issue #21223: Pass test_site/test_startup_imports when some of the extensions
doko@ubuntu.com [Tue, 15 Apr 2014 18:37:54 +0000 (20:37 +0200)]
- Issue #21223: Pass test_site/test_startup_imports when some of the extensions
  are built as builtins.

11 years agoCloses Issue 17861: Autogenerate Include/opcode.h from opcode.py.
Kushal Das [Tue, 15 Apr 2014 18:20:06 +0000 (23:50 +0530)]
Closes Issue 17861: Autogenerate Include/opcode.h from opcode.py.

It includes required changes in Makefile.pre.in and configure.ac
among other files.

11 years agomerge 3.4
Yury Selivanov [Tue, 15 Apr 2014 16:01:57 +0000 (12:01 -0400)]
merge 3.4

11 years agoasyncio.tasks: Make sure CoroWrapper.send proxies one argument correctly
Yury Selivanov [Tue, 15 Apr 2014 16:01:44 +0000 (12:01 -0400)]
asyncio.tasks: Make sure CoroWrapper.send proxies one argument correctly

Issue #21209.

11 years agoasyncio.tasks: Make sure CoroWrapper.send proxies one argument correctly
Yury Selivanov [Tue, 15 Apr 2014 16:01:16 +0000 (12:01 -0400)]
asyncio.tasks: Make sure CoroWrapper.send proxies one argument correctly

Issue #21209.

11 years agoCloses #21203: Updated fileConfig and dictConfig to remove inconsistencies. Thanks...
Vinay Sajip [Tue, 15 Apr 2014 13:24:53 +0000 (14:24 +0100)]
Closes #21203: Updated fileConfig and dictConfig to remove inconsistencies. Thanks to Jure Koren for the patch.

11 years agoCloses #21197: Add lib64 -> lib symlink in venvs on 64-bit non-OS X POSIX.
Vinay Sajip [Tue, 15 Apr 2014 12:56:36 +0000 (13:56 +0100)]
Closes #21197: Add lib64 -> lib symlink in venvs on 64-bit non-OS X POSIX.

11 years agoReverted 16efa8d27e4c after discussion with Eric.
Vinay Sajip [Tue, 15 Apr 2014 12:52:21 +0000 (13:52 +0100)]
Reverted 16efa8d27e4c after discussion with Eric.

11 years agoIssue #21197: Add lib64 -> lib symlink in venvs on 64-bit non-OS X POSIX.
Vinay Sajip [Tue, 15 Apr 2014 10:18:10 +0000 (11:18 +0100)]
Issue #21197: Add lib64 -> lib symlink in venvs on 64-bit non-OS X POSIX.

11 years agoClosed issue #8931: Make alternate formatting for 'c' raise an exception. Patch by...
Eric V. Smith [Tue, 15 Apr 2014 07:05:02 +0000 (03:05 -0400)]
Closed issue #8931: Make alternate formatting for 'c' raise an exception. Patch by Torsten Landschoff.

11 years agomerge 3.4
Yury Selivanov [Tue, 15 Apr 2014 02:27:27 +0000 (22:27 -0400)]
merge 3.4

11 years agomisc.news: Remove trailing whitespace
Yury Selivanov [Tue, 15 Apr 2014 02:25:24 +0000 (22:25 -0400)]
misc.news: Remove trailing whitespace

11 years agosyncio.tasks: Fix CoroWrapper to workaround yield-from bug in CPython < 3.4.1
Yury Selivanov [Tue, 15 Apr 2014 02:24:51 +0000 (22:24 -0400)]
syncio.tasks: Fix CoroWrapper to workaround yield-from bug in CPython < 3.4.1

Closes issue #21209.

11 years agomisc.news: Remove whitespace
Yury Selivanov [Tue, 15 Apr 2014 02:22:36 +0000 (22:22 -0400)]
misc.news: Remove whitespace

11 years agoasyncio.tasks: Fix CoroWrapper to workaround yield-from bug in CPython < 3.4.1
Yury Selivanov [Tue, 15 Apr 2014 02:21:52 +0000 (22:21 -0400)]
asyncio.tasks: Fix CoroWrapper to workaround yield-from bug in CPython < 3.4.1

Closes issue #21209.

11 years agomerge 3.4
Senthil Kumaran [Tue, 15 Apr 2014 01:32:13 +0000 (21:32 -0400)]
merge 3.4

11 years agoInvoke test_urllibnet tests using unittest.main function
Senthil Kumaran [Tue, 15 Apr 2014 01:31:41 +0000 (21:31 -0400)]
Invoke test_urllibnet tests using unittest.main function

11 years ago#15916: if there are no docstrings, make empty suite, not an error.
R David Murray [Tue, 15 Apr 2014 00:28:36 +0000 (20:28 -0400)]
#15916: if there are no docstrings, make empty suite, not an error.

This makes doctest work like unittest: if the test case is empty, that
just means there are zero tests run, it's not an error.  The existing
behavior was broken, since it only gave an error if there were *no*
docstrings, and zero tests run if there were docstrings but none of them
contained tests.  So this makes it self-consistent as well.

Patch by Glenn Jones.

11 years agoMerge: #15104: add backtick code markup.
R David Murray [Mon, 14 Apr 2014 22:54:21 +0000 (18:54 -0400)]
Merge: #15104: add backtick code markup.

11 years ago#15104: add backtick code markup.
R David Murray [Mon, 14 Apr 2014 22:53:51 +0000 (18:53 -0400)]
#15104: add backtick code markup.

11 years agoMerge #17498: Defer SMTPServerDisconnected errors until the next command.
R David Murray [Mon, 14 Apr 2014 22:22:00 +0000 (18:22 -0400)]
Merge #17498: Defer SMTPServerDisconnected errors until the next command.

11 years ago#17498: Defer SMTPServerDisconnected errors until the next command.
R David Murray [Mon, 14 Apr 2014 22:21:38 +0000 (18:21 -0400)]
#17498: Defer SMTPServerDisconnected errors until the next command.

Normally an SMTP server will return an error, and smtplib will then issue an
RSET to return the connection to the known starting state.  Some servers,
however, disconnect after issuing certain errors.  When we issue the RSET,
this would result in raising an SMTPServerDisconnected error, *instead* of
returning the error code the user of the library was expecting.  This fix
makes the internal RSET calls ignore the disconnection so that the error code
is returned.  The user of the library will then get the SMTPServerDisconnected
error the next time they try to talk to the server.

Patch by Kushal Das.

11 years agomerge heads
Senthil Kumaran [Mon, 14 Apr 2014 20:49:07 +0000 (16:49 -0400)]
merge heads

11 years agomerge heads
Senthil Kumaran [Mon, 14 Apr 2014 20:48:39 +0000 (16:48 -0400)]
merge heads

11 years agomerge heads
Senthil Kumaran [Mon, 14 Apr 2014 20:47:05 +0000 (16:47 -0400)]
merge heads

11 years agoIssue #13598: Added acknowledgements to Misc/NEWS.
Eric V. Smith [Mon, 14 Apr 2014 20:46:52 +0000 (16:46 -0400)]
Issue #13598: Added acknowledgements to Misc/NEWS.

11 years agomerge heads
Senthil Kumaran [Mon, 14 Apr 2014 20:45:49 +0000 (16:45 -0400)]
merge heads

11 years agomerge heads
Senthil Kumaran [Mon, 14 Apr 2014 20:44:27 +0000 (16:44 -0400)]
merge heads

11 years agomerge heads
Senthil Kumaran [Mon, 14 Apr 2014 20:43:58 +0000 (16:43 -0400)]
merge heads

11 years agoIssue #13598: Add auto-numbering of replacement fields to string.Formatter.
Eric V. Smith [Mon, 14 Apr 2014 20:43:50 +0000 (16:43 -0400)]
Issue #13598: Add auto-numbering of replacement fields to string.Formatter.

11 years agomerge heads
Senthil Kumaran [Mon, 14 Apr 2014 20:37:57 +0000 (16:37 -0400)]
merge heads

11 years agomerge 3.4
Senthil Kumaran [Mon, 14 Apr 2014 20:33:21 +0000 (16:33 -0400)]
merge 3.4

Convert urllib.request parse_proxy doctests to unittests.

11 years agomerge heads
Gregory P. Smith [Mon, 14 Apr 2014 20:32:35 +0000 (13:32 -0700)]
merge heads

11 years agoConvert urllib.request parse_proxy doctests to unittests.
Senthil Kumaran [Mon, 14 Apr 2014 20:32:20 +0000 (16:32 -0400)]
Convert urllib.request parse_proxy doctests to unittests.

11 years agoAdd conditional code for android's lack of definition of SYS_getdent64.
Gregory P. Smith [Mon, 14 Apr 2014 20:31:55 +0000 (13:31 -0700)]
Add conditional code for android's lack of definition of SYS_getdent64.
Fixes issue20307.  No Misc/NEWS entry because frankly this is an
esoteric platform for anyone to be figuring out how to cross compile
CPython for.

11 years agoAdd conditional code for android's lack of definition of SYS_getdent64.
Gregory P. Smith [Mon, 14 Apr 2014 20:31:21 +0000 (13:31 -0700)]
Add conditional code for android's lack of definition of SYS_getdent64.
Fixes issue20307.  No Misc/NEWS entry because frankly this is an
esoteric platform for anyone to be figuring out how to cross compile
CPython for.

11 years agoCloses issue 17660. You no longer need to explicitly pass create=True when patching...
Michael Foord [Mon, 14 Apr 2014 20:25:20 +0000 (16:25 -0400)]
Closes issue 17660. You no longer need to explicitly pass create=True when patching builtin names.

11 years agoMerge
Michael Foord [Mon, 14 Apr 2014 20:10:02 +0000 (16:10 -0400)]
Merge

11 years agoIssue 17826. Setting an iterable side_effect on a mock created by create_autospec...
Michael Foord [Mon, 14 Apr 2014 20:09:42 +0000 (16:09 -0400)]
Issue 17826. Setting an iterable side_effect on a mock created by create_autospec now works

11 years ago#10481: describe universal_newlines' effect on communicate()/check_output() output...
Andrew Kuchling [Mon, 14 Apr 2014 19:08:18 +0000 (15:08 -0400)]
#10481: describe universal_newlines' effect on communicate()/check_output() output (alternately bytes or strings)

Patch by Sam Kimbrel.

11 years agoMerge: #15104: improve the discussion of __main__.
R David Murray [Mon, 14 Apr 2014 19:05:12 +0000 (15:05 -0400)]
Merge: #15104: improve the discussion of __main__.

11 years ago#15104: improve the discussion of __main__.
R David Murray [Mon, 14 Apr 2014 19:04:47 +0000 (15:04 -0400)]
#15104: improve the discussion of __main__.

Patch by Sam Lucidi.

11 years agomerge 3.4
Senthil Kumaran [Mon, 14 Apr 2014 18:33:14 +0000 (14:33 -0400)]
merge 3.4

11 years agoFix the NEWS Entry item. (Thanks Stéphane Wirtel)
Senthil Kumaran [Mon, 14 Apr 2014 18:32:20 +0000 (14:32 -0400)]
Fix the NEWS Entry item. (Thanks Stéphane Wirtel)

11 years ago#11983: update comment to describe which fields are used and why.
Andrew Kuchling [Mon, 14 Apr 2014 18:19:52 +0000 (14:19 -0400)]
#11983: update comment to describe which fields are used and why.

Original patch by Caelyn McAulay; modified after discussion w/ her at
the PyCon 2014 sprints.

11 years agoMerge from 3.4
Andrew Kuchling [Mon, 14 Apr 2014 17:52:34 +0000 (13:52 -0400)]
Merge from 3.4

11 years ago#18518: mention that including a return statement changes/breaks the behaviour
Andrew Kuchling [Mon, 14 Apr 2014 17:39:43 +0000 (13:39 -0400)]
#18518: mention that including a return statement changes/breaks the behaviour

11 years agomerge 3.4
Benjamin Peterson [Mon, 14 Apr 2014 17:13:01 +0000 (13:13 -0400)]
merge 3.4

11 years agomerge from 3.4
Senthil Kumaran [Mon, 14 Apr 2014 17:10:05 +0000 (13:10 -0400)]
merge from 3.4

Issue #7776: Fix ``Host:'' header and reconnection when using  http.client.HTTPConnection.set_tunnel()
Patch by Nikolaus Rath.