]> granicus.if.org Git - python/log
python
10 years agoasyncio doc: remove reference to _DEBUG (now replaced with PYTHONASYNCIODEBUG
Victor Stinner [Thu, 20 Feb 2014 00:44:10 +0000 (01:44 +0100)]
asyncio doc: remove reference to _DEBUG (now replaced with PYTHONASYNCIODEBUG
env var), document the default debug mode

10 years agoupdate magic number for #20625
Benjamin Peterson [Wed, 19 Feb 2014 23:05:36 +0000 (18:05 -0500)]
update magic number for #20625

10 years agoasyncio, Tulip issue #136: Add get/set_debug() methods to BaseEventLoopTests.
Victor Stinner [Wed, 19 Feb 2014 22:15:02 +0000 (23:15 +0100)]
asyncio, Tulip issue #136: Add get/set_debug() methods to BaseEventLoopTests.
Add also a PYTHONASYNCIODEBUG environment variable to debug coroutines since
Python startup, to be able to debug coroutines defined directly in the asyncio
module.

10 years agoinspect: Fix getfullargspec() to not to follow __wrapped__ chains
Yury Selivanov [Wed, 19 Feb 2014 21:27:23 +0000 (16:27 -0500)]
inspect: Fix getfullargspec() to not to follow __wrapped__ chains

Initial patch by Nick Coghlan.

10 years agoIssue #20682: Oops, fix test_create_connection() of test_asyncio (fix my previous...
Victor Stinner [Wed, 19 Feb 2014 17:32:03 +0000 (18:32 +0100)]
Issue #20682: Oops, fix test_create_connection() of test_asyncio (fix my previous commit)

10 years agoClose #20682: Fix UNIX sockets tests of test_asyncio on Mac OS X Tiger
Victor Stinner [Wed, 19 Feb 2014 17:10:32 +0000 (18:10 +0100)]
Close #20682: Fix UNIX sockets tests of test_asyncio on Mac OS X Tiger

On Mac OS X Tiger (and older), getsockname() returns a zero-length address for
UNIX socket, and so 'sockname' extra info is None.

10 years agoasyncio: WriteTransport.set_write_buffer_size to call _maybe_pause_protocol
Yury Selivanov [Wed, 19 Feb 2014 16:10:52 +0000 (11:10 -0500)]
asyncio: WriteTransport.set_write_buffer_size to call _maybe_pause_protocol

10 years agoasyncio: document new create_unix_connection() and create_unix_server() methods
Victor Stinner [Wed, 19 Feb 2014 12:32:34 +0000 (13:32 +0100)]
asyncio: document new create_unix_connection() and create_unix_server() methods
of BaseEventLoop

10 years agoasyncio: pep8-ify the code.
Yury Selivanov [Wed, 19 Feb 2014 03:56:15 +0000 (22:56 -0500)]
asyncio: pep8-ify the code.

10 years agoasyncio: Fix spelling and typos.
Yury Selivanov [Wed, 19 Feb 2014 03:27:48 +0000 (22:27 -0500)]
asyncio: Fix spelling and typos.

Thanks to Vajrasky Kok for discovering some of them.

10 years agoIssue #20682: test_asyncio, _basetest_create_connection() checks also the
Victor Stinner [Wed, 19 Feb 2014 01:21:08 +0000 (02:21 +0100)]
Issue #20682: test_asyncio, _basetest_create_connection() checks also the
sockname, as _basetest_create_ssl_connection().

10 years agoasyncio, Tulip issue 143: UNIX domain methods, fix ResourceWarning and
Victor Stinner [Wed, 19 Feb 2014 00:45:59 +0000 (01:45 +0100)]
asyncio, Tulip issue 143: UNIX domain methods, fix ResourceWarning and
DeprecationWarning warnings. create_unix_server() closes the socket on any
error, not only on OSError.

10 years agoasyncio, Tulip issue 139: Improve error messages on "fatal errors"
Victor Stinner [Wed, 19 Feb 2014 00:40:41 +0000 (01:40 +0100)]
asyncio, Tulip issue 139: Improve error messages on "fatal errors"

Mention if the error was caused by a read or a write, and be more specific on
the object (ex: "pipe transport" instead of "transport").

10 years agoasyncio.transports: Make _ProactorBasePipeTransport use _FlowControlMixin
Yury Selivanov [Tue, 18 Feb 2014 23:41:13 +0000 (18:41 -0500)]
asyncio.transports: Make _ProactorBasePipeTransport use _FlowControlMixin

10 years agoasyncio: New error handling API. Issue #20681.
Yury Selivanov [Tue, 18 Feb 2014 23:02:19 +0000 (18:02 -0500)]
asyncio: New error handling API. Issue #20681.

10 years agoIssue #20625: Fix compilation issue
Victor Stinner [Tue, 18 Feb 2014 21:07:56 +0000 (22:07 +0100)]
Issue #20625: Fix compilation issue

10 years agoClose issue20653: allow Enum subclasses to override __reduce_ex__
Ethan Furman [Tue, 18 Feb 2014 20:37:12 +0000 (12:37 -0800)]
Close issue20653: allow Enum subclasses to override __reduce_ex__

10 years agoasyncio: Make tests pass on Windows.
Guido van Rossum [Tue, 18 Feb 2014 18:24:30 +0000 (10:24 -0800)]
asyncio: Make tests pass on Windows.

10 years agoMangle __parameters in __annotations__ dict properly. Issue #20625.
Yury Selivanov [Tue, 18 Feb 2014 17:49:41 +0000 (12:49 -0500)]
Mangle __parameters in __annotations__ dict properly. Issue #20625.

10 years agoIssue #20609: Merge with 3.3.
Zachary Ware [Tue, 18 Feb 2014 17:35:15 +0000 (11:35 -0600)]
Issue #20609: Merge with 3.3.

10 years agoMisc/NEWS: Add a news item for UNIX Sockets support in asyncio. Cleanup WS.
Yury Selivanov [Tue, 18 Feb 2014 17:21:57 +0000 (12:21 -0500)]
Misc/NEWS: Add a news item for UNIX Sockets support in asyncio. Cleanup WS.

10 years agoasyncio: Add support for UNIX Domain Sockets.
Yury Selivanov [Tue, 18 Feb 2014 17:15:06 +0000 (12:15 -0500)]
asyncio: Add support for UNIX Domain Sockets.

10 years agoIssue #20493: Document that asyncio should not exceed one day
Victor Stinner [Tue, 18 Feb 2014 08:37:43 +0000 (09:37 +0100)]
Issue #20493: Document that asyncio should not exceed one day

10 years agoClose #20649: Fix typo in asyncio doc. Patch written by Brett Cannon.
Victor Stinner [Tue, 18 Feb 2014 08:22:00 +0000 (09:22 +0100)]
Close #20649: Fix typo in asyncio doc. Patch written by Brett Cannon.

10 years agoIssue #20667: KqueueEventLoopTests.test_read_pty_output() hangs also on OpenBSD 5.5.
Victor Stinner [Tue, 18 Feb 2014 08:13:47 +0000 (09:13 +0100)]
Issue #20667: KqueueEventLoopTests.test_read_pty_output() hangs also on OpenBSD 5.5.

10 years agoIssue #20667: test_asyncio: Skip KqueueEventLoopTests.test_read_pty_output() on
Victor Stinner [Tue, 18 Feb 2014 00:30:03 +0000 (01:30 +0100)]
Issue #20667: test_asyncio: Skip KqueueEventLoopTests.test_read_pty_output() on
OpenBSD older than 5.5

10 years agoIssue #20655: Fix test_asyncio, run also subprocess tests. Patch written by
Victor Stinner [Mon, 17 Feb 2014 23:11:21 +0000 (00:11 +0100)]
Issue #20655: Fix test_asyncio, run also subprocess tests. Patch written by
Vajrasky Kok.

10 years agoClose #20652: asyncio doc: close the event loop in run_forever() example. Fix
Victor Stinner [Mon, 17 Feb 2014 09:54:30 +0000 (10:54 +0100)]
Close #20652: asyncio doc: close the event loop in run_forever() example. Fix
also typo. Patch written by Vajrasky Kok.

10 years agoIssue #20616: Add a format() method to tracemalloc.Traceback.
Victor Stinner [Sun, 16 Feb 2014 22:53:38 +0000 (23:53 +0100)]
Issue #20616: Add a format() method to tracemalloc.Traceback.

10 years agomerge backout for #20621
Benjamin Peterson [Sun, 16 Feb 2014 19:17:28 +0000 (14:17 -0500)]
merge backout for #20621

10 years agolook up __getnewargs__ and __getnewargs_ex__ on the object type (#16251)
Benjamin Peterson [Sun, 16 Feb 2014 18:49:16 +0000 (13:49 -0500)]
look up __getnewargs__ and __getnewargs_ex__ on the object type (#16251)

10 years agoIssue #19744: Handle missing SSL/TLS in ensurepip
Nick Coghlan [Fri, 14 Feb 2014 23:14:54 +0000 (09:14 +1000)]
Issue #19744: Handle missing SSL/TLS in ensurepip

- now also allows POSIX installation with SSL/TLS missing
- a goal for pip 1.6 is to allow local use without SSL/TLS

10 years agoset line and column numbers for keyword-only arg nodes (closes #20619)
Benjamin Peterson [Fri, 14 Feb 2014 00:22:14 +0000 (19:22 -0500)]
set line and column numbers for keyword-only arg nodes (closes #20619)

10 years agoIssue #20526, #19466: Revert changes of issue #19466 which introduces a
Victor Stinner [Thu, 13 Feb 2014 11:48:54 +0000 (12:48 +0100)]
Issue #20526, #19466: Revert changes of issue #19466 which introduces a
regression: don't clear anymore the state of Python threads early during the
Python shutdown.

10 years agoFix test_asyncio/test_events.py: skip IPv6 if IPv6 is disabled on the host
Victor Stinner [Thu, 13 Feb 2014 09:46:05 +0000 (10:46 +0100)]
Fix test_asyncio/test_events.py: skip IPv6 if IPv6 is disabled on the host

10 years agoayncio, Tulip issue 129: BaseEventLoop.sock_connect() now raises an error if
Victor Stinner [Thu, 13 Feb 2014 08:24:37 +0000 (09:24 +0100)]
ayncio, Tulip issue 129: BaseEventLoop.sock_connect() now raises an error if
the address is not resolved (hostname instead of an IP address) for AF_INET and
AF_INET6 address families.

10 years agoasyncio: Change as_completed() to use a Queue, to avoid O(N**2) behavior. Fixes issue...
Guido van Rossum [Thu, 13 Feb 2014 01:58:19 +0000 (17:58 -0800)]
asyncio: Change as_completed() to use a Queue, to avoid O(N**2) behavior. Fixes issue #20566.

10 years agoasyncio.events: Use __slots__ in Handle and TimerHandle
Yury Selivanov [Wed, 12 Feb 2014 22:01:52 +0000 (17:01 -0500)]
asyncio.events: Use __slots__ in Handle and TimerHandle

10 years agoIssue #20495: Skip test_read_pty_output() of test_asyncio on FreeBSD older than
Victor Stinner [Tue, 11 Feb 2014 17:40:56 +0000 (18:40 +0100)]
Issue #20495: Skip test_read_pty_output() of test_asyncio on FreeBSD older than
FreeBSD 8

10 years agoIssue #20505: Remove debug code
Victor Stinner [Tue, 11 Feb 2014 16:53:47 +0000 (17:53 +0100)]
Issue #20505: Remove debug code

10 years agomerge 3.3 (#20594)
Benjamin Peterson [Tue, 11 Feb 2014 15:19:12 +0000 (10:19 -0500)]
merge 3.3 (#20594)

10 years agoasyncio, Tulip issue 131: as_completed() and wait() now raises a TypeError if
Victor Stinner [Tue, 11 Feb 2014 10:54:08 +0000 (11:54 +0100)]
asyncio, Tulip issue 131: as_completed() and wait() now raises a TypeError if
the list of futures is not a list but a Future, Task or coroutine object

10 years agoasyncio, Tulip issue 130: Add more checks on subprocess_exec/subprocess_shell
Victor Stinner [Tue, 11 Feb 2014 10:44:56 +0000 (11:44 +0100)]
asyncio, Tulip issue 130: Add more checks on subprocess_exec/subprocess_shell
parameters

10 years agoasyncio, Tulip issue 126: call_soon(), call_soon_threadsafe(), call_later(),
Victor Stinner [Tue, 11 Feb 2014 10:34:30 +0000 (11:34 +0100)]
asyncio, Tulip issue 126: call_soon(), call_soon_threadsafe(), call_later(),
call_at() and run_in_executor() now raise a TypeError if the callback is a
coroutine function.

10 years agoIssue #20505: use also the monotonic time to decide if asyncio debug traces
Victor Stinner [Tue, 11 Feb 2014 09:26:53 +0000 (10:26 +0100)]
Issue #20505: use also the monotonic time to decide if asyncio debug traces
should be printed

10 years agoIssue #20505: Oops, only print debug info if selector.select(timeout) took less
Victor Stinner [Tue, 11 Feb 2014 09:10:41 +0000 (10:10 +0100)]
Issue #20505: Oops, only print debug info if selector.select(timeout) took less
than timeout

10 years agoIssue #20505: Improve debug info in asyncio event loop
Victor Stinner [Tue, 11 Feb 2014 09:08:08 +0000 (10:08 +0100)]
Issue #20505: Improve debug info in asyncio event loop

10 years agoIssue #20505: Fix TestLoop, set the clock resolution
Victor Stinner [Tue, 11 Feb 2014 08:03:47 +0000 (09:03 +0100)]
Issue #20505: Fix TestLoop, set the clock resolution

10 years agoIssue #20505: BaseEventLoop uses again the resolution of the clock to decide if
Victor Stinner [Mon, 10 Feb 2014 22:42:32 +0000 (23:42 +0100)]
Issue #20505: BaseEventLoop uses again the resolution of the clock to decide if
scheduled tasks should be executed or not.

10 years agomerge with 3.3
Georg Brandl [Mon, 10 Feb 2014 21:11:21 +0000 (22:11 +0100)]
merge with 3.3

11 years agoIssue #20505: Use even shorter sleep in test_timeout_rounding() to make the
Victor Stinner [Mon, 10 Feb 2014 18:17:46 +0000 (19:17 +0100)]
Issue #20505: Use even shorter sleep in test_timeout_rounding() to make the
test more reliable (= fail more often on Windows with HPET enabled).

10 years agoCreated release branch for 3.4.
Larry Hastings [Fri, 21 Feb 2014 07:38:01 +0000 (23:38 -0800)]
Created release branch for 3.4.

10 years agoPython 3.4.0rc1: Post-release updates.
Larry Hastings [Tue, 11 Feb 2014 08:14:16 +0000 (00:14 -0800)]
Python 3.4.0rc1: Post-release updates.

10 years agoAdded tag v3.4.0rc1 for changeset 5e088cea8660
Larry Hastings [Mon, 10 Feb 2014 22:45:14 +0000 (14:45 -0800)]
Added tag v3.4.0rc1 for changeset 5e088cea8660

10 years agoPython 3.4.0rc1: Version bump. v3.4.0rc1
Larry Hastings [Mon, 10 Feb 2014 22:45:05 +0000 (14:45 -0800)]
Python 3.4.0rc1: Version bump.

10 years agoAdd PyType_GetSlot to python3 def file. Patch courtesy Martin v. Löwis.
Larry Hastings [Mon, 10 Feb 2014 22:40:04 +0000 (14:40 -0800)]
Add PyType_GetSlot to python3 def file.  Patch courtesy Martin v. Löwis.

11 years agoPython 3.4.0rc1 release: Updated pydoc topics, fixed suspicious markup errors.
Larry Hastings [Mon, 10 Feb 2014 12:26:10 +0000 (04:26 -0800)]
Python 3.4.0rc1 release: Updated pydoc topics, fixed suspicious markup errors.

11 years agoIssue #20517: Removed unnecessary new (short-lived) functions from PyErr.
Larry Hastings [Mon, 10 Feb 2014 11:43:57 +0000 (03:43 -0800)]
Issue #20517: Removed unnecessary new (short-lived) functions from PyErr.

11 years agoIssue #20505: Add debug info to analyze sporaric failures of
Victor Stinner [Mon, 10 Feb 2014 10:47:50 +0000 (11:47 +0100)]
Issue #20505: Add debug info to analyze sporaric failures of
test_timeout_rounding() on Windows XP buildbots.

11 years agoIssue #20530: The signatures for slot builtins have been updated
Larry Hastings [Mon, 10 Feb 2014 06:22:38 +0000 (22:22 -0800)]
Issue #20530: The signatures for slot builtins have been updated
to reflect the fact that they only accept positional-only arguments.

11 years agoIssue #20517: Functions in the os module that accept two filenames
Larry Hastings [Mon, 10 Feb 2014 06:05:19 +0000 (22:05 -0800)]
Issue #20517: Functions in the os module that accept two filenames
now register both filenames in the exception on failure.
This required adding new C API functions allowing OSError exceptions
to reference two filenames instead of one.

11 years agoasyncio: Tulip issue 112: Inline make_handle() into Handle constructor
Victor Stinner [Sun, 9 Feb 2014 23:45:44 +0000 (00:45 +0100)]
asyncio: Tulip issue 112: Inline make_handle() into Handle constructor

11 years agoMore complete documentation of event loops and policies.
Eli Bendersky [Sun, 9 Feb 2014 14:55:58 +0000 (06:55 -0800)]
More complete documentation of event loops and policies.

Documented the AbstractEventLoopPolicy interface explicitly and explained the
relation between the global loop & policy access functions. Added an initial
section that explains the connections in general terms. Documented missing XXX
methods.

11 years agoVarious formatting & grammar fixes in asyncio* docs.
Eli Bendersky [Sun, 9 Feb 2014 14:07:47 +0000 (06:07 -0800)]
Various formatting & grammar fixes in asyncio* docs.

11 years agoFix typo in library/ipc.rst
Eli Bendersky [Sun, 9 Feb 2014 13:54:13 +0000 (05:54 -0800)]
Fix typo in library/ipc.rst

11 years agoIssue #20571: skip test_readline() of test_codecs for Windows code page 65001.
Victor Stinner [Sun, 9 Feb 2014 12:11:53 +0000 (13:11 +0100)]
Issue #20571: skip test_readline() of test_codecs for Windows code page 65001.
The decoder does not support partial decoding yet for this code page.

11 years agoIssue #20437: Fixed 22 potential bugs when deleting objects references.
Serhiy Storchaka [Sun, 9 Feb 2014 11:46:20 +0000 (13:46 +0200)]
Issue #20437: Fixed 22 potential bugs when deleting objects references.

11 years agoIssue #20437: Fixed 21 potential bugs when deleting objects references.
Serhiy Storchaka [Sun, 9 Feb 2014 11:33:53 +0000 (13:33 +0200)]
Issue #20437: Fixed 21 potential bugs when deleting objects references.

11 years agoIssue #20530: Argument Clinic's signature format has been revised again.
Larry Hastings [Sun, 9 Feb 2014 06:15:29 +0000 (22:15 -0800)]
Issue #20530: Argument Clinic's signature format has been revised again.
The new syntax is highly human readable while still preventing false
positives.  The syntax also extends Python syntax to denote "self" and
positional-only parameters, allowing inspect.Signature objects to be
totally accurate for all supported builtins in Python 3.4.

11 years agoasyncio: Remove more relics of resolution/granularity.
Guido van Rossum [Sun, 9 Feb 2014 03:44:02 +0000 (19:44 -0800)]
asyncio: Remove more relics of resolution/granularity.

11 years agoIssue #20500: clarify that invocation may be indirect
Nick Coghlan [Sun, 9 Feb 2014 02:05:13 +0000 (12:05 +1000)]
Issue #20500: clarify that invocation may be indirect

11 years agoIssue #20500: Note other public APIs with the new assertion
Nick Coghlan [Sun, 9 Feb 2014 02:00:01 +0000 (12:00 +1000)]
Issue #20500: Note other public APIs with the new assertion

11 years agoasyncio: Remove Process.subprocess attribute; it's too easy to get inconsistent
Victor Stinner [Sun, 9 Feb 2014 01:51:40 +0000 (02:51 +0100)]
asyncio: Remove Process.subprocess attribute; it's too easy to get inconsistent
Process and Popen objects

11 years agoasyncio: Test fix.
Guido van Rossum [Sun, 9 Feb 2014 01:35:09 +0000 (17:35 -0800)]
asyncio: Test fix.

11 years agoNote the new debug assertion in PyObject_Str
Nick Coghlan [Sun, 9 Feb 2014 00:57:34 +0000 (10:57 +1000)]
Note the new debug assertion in PyObject_Str

11 years agoClose #20500: Don't trigger PyObject_Str assertion at shutdown
Nick Coghlan [Sun, 9 Feb 2014 00:43:21 +0000 (10:43 +1000)]
Close #20500: Don't trigger PyObject_Str assertion at shutdown

11 years agomerge
Brian Curtin [Sun, 9 Feb 2014 00:36:57 +0000 (18:36 -0600)]
merge

11 years agoSpelling corrections. Submitted to python-dev by python@mrabarnett.plus.com
Brian Curtin [Sun, 9 Feb 2014 00:36:14 +0000 (18:36 -0600)]
Spelling corrections. Submitted to python-dev by python@mrabarnett.plus.com

11 years agoasyncio doc: fix gather() doc
Victor Stinner [Sun, 9 Feb 2014 00:35:24 +0000 (01:35 +0100)]
asyncio doc: fix gather() doc

11 years agoasyncio tests: Remove scories of resolution/granularity
Victor Stinner [Sun, 9 Feb 2014 00:25:52 +0000 (01:25 +0100)]
asyncio tests: Remove scories of resolution/granularity

11 years agoTweaks to What's New and some referenced docs
Nick Coghlan [Sun, 9 Feb 2014 00:10:24 +0000 (10:10 +1000)]
Tweaks to What's New and some referenced docs

11 years agoClose #20563: Declare ipaddress API stable
Nick Coghlan [Sat, 8 Feb 2014 23:18:26 +0000 (09:18 +1000)]
Close #20563: Declare ipaddress API stable

11 years agoMerge: #14983: always add a line end after a MIME boundary marker.
R David Murray [Sat, 8 Feb 2014 22:56:17 +0000 (17:56 -0500)]
Merge: #14983: always add a line end after a MIME boundary marker.

11 years ago#14983: always add a line end after a MIME boundary marker.
R David Murray [Sat, 8 Feb 2014 22:54:56 +0000 (17:54 -0500)]
#14983: always add a line end after a MIME boundary marker.

This is more RFC compliant (see issue) and fixes a problem with
signature verifiers rejecting the part when signed.  There is some
amount of backward compatibility concern here since it changes
the output, but the RFC issue coupled with fixing the problem
with signature verifiers seems worth the small risk of breaking
code that depends on the current incorrect output.

11 years agomerge from 3.3
Senthil Kumaran [Sat, 8 Feb 2014 22:28:44 +0000 (14:28 -0800)]
merge from 3.3

Include the mention of ResourceWarning being displayed by default by the test runner.
Addressing #issue 20529

11 years agoInclude the mention of ResourceWarning being displayed by default by the test runner.
Senthil Kumaran [Sat, 8 Feb 2014 22:28:03 +0000 (14:28 -0800)]
Include the mention of ResourceWarning being displayed by default by the test runner.
Addressing #issue 20529

11 years agoasyncio doc: document missing event loop methods
Victor Stinner [Sat, 8 Feb 2014 22:22:58 +0000 (23:22 +0100)]
asyncio doc: document missing event loop methods

11 years agoIssue #20540: Fix a performance regression (vs. Python 3.2) when layering a multiproc...
Antoine Pitrou [Sat, 8 Feb 2014 22:03:56 +0000 (23:03 +0100)]
Issue #20540: Fix a performance regression (vs. Python 3.2) when layering a multiprocessing Connection over a TCP socket.
For small payloads, Nagle's algorithm would introduce idle delays before the entire transmission of a message.

11 years agoIssue #20065: socketmodule: Fix build error when AF_CAN is defined without the
Charles-François Natali [Sat, 8 Feb 2014 21:54:11 +0000 (22:54 +0100)]
Issue #20065: socketmodule: Fix build error when AF_CAN is defined without the
proper CAN headers.

11 years agoasyncio doc: sort methods
Victor Stinner [Sat, 8 Feb 2014 21:50:07 +0000 (22:50 +0100)]
asyncio doc: sort methods

11 years agoIssue #20540: Fix a performance regression (vs. Python 3.2) when layering a multiproc...
Antoine Pitrou [Sat, 8 Feb 2014 22:05:52 +0000 (23:05 +0100)]
Issue #20540: Fix a performance regression (vs. Python 3.2) when layering a multiprocessing Connection over a TCP socket.
For small payloads, Nagle's algorithm would introduce idle delays before the entire transmission of a message.

11 years agoMerge.
Charles-François Natali [Sat, 8 Feb 2014 21:55:13 +0000 (22:55 +0100)]
Merge.

11 years agoIssue #20065: socketmodule: Fix build error when AF_CAN is defined without the
Charles-François Natali [Sat, 8 Feb 2014 21:54:48 +0000 (22:54 +0100)]
Issue #20065: socketmodule: Fix build error when AF_CAN is defined without the
proper CAN headers.

11 years agoClose issue20534: all pickle protocols now supported.
Ethan Furman [Sat, 8 Feb 2014 19:36:27 +0000 (11:36 -0800)]
Close issue20534: all pickle protocols now supported.

11 years agoMerge: #16983: Apply postel's law to encoded words inside quoted strings.
R David Murray [Sat, 8 Feb 2014 18:13:01 +0000 (13:13 -0500)]
Merge: #16983: Apply postel's law to encoded words inside quoted strings.

11 years ago#16983: Apply postel's law to encoded words inside quoted strings.
R David Murray [Sat, 8 Feb 2014 18:12:00 +0000 (13:12 -0500)]
#16983: Apply postel's law to encoded words inside quoted strings.

This applies only to the new parser.  The old parser decodes encoded words
inside quoted strings already, although it gets the whitespace wrong
when it does so.

This version of the patch only handles the most common case (a single encoded
word surrounded by quotes), but I haven't seen any other variations of this in
the wild yet, so its good enough for now.

11 years agoMerge #19772: Do not mutate message when downcoding to 7bit.
R David Murray [Sat, 8 Feb 2014 16:51:18 +0000 (11:51 -0500)]
Merge #19772: Do not mutate message when downcoding to 7bit.

11 years ago#19772: Do not mutate message when downcoding to 7bit.
R David Murray [Sat, 8 Feb 2014 16:48:20 +0000 (11:48 -0500)]
#19772: Do not mutate message when downcoding to 7bit.

This is a bit of an ugly hack because of the way generator pieces together the
output message.  The deepcopys aren't too expensive, though, because we know it
is only called on messages that are not multiparts, and the payload (the thing
that could be large) is an immutable object.

Test and preliminary work on patch by Vajrasky Kok.

11 years agoIssue #20553. Use specific asserts in ipaddress tests.
Serhiy Storchaka [Sat, 8 Feb 2014 14:39:51 +0000 (16:39 +0200)]
Issue #20553. Use specific asserts in ipaddress tests.

11 years agoIssue #20553. Use specific asserts in ipaddress tests.
Serhiy Storchaka [Sat, 8 Feb 2014 14:38:35 +0000 (16:38 +0200)]
Issue #20553. Use specific asserts in ipaddress tests.