backport context argument of urlopen (#22366) for pep 476
Issue #16000: Convert test_curses to use unittest
Issue #16000: Convert test_curses to use unittest
Fix test_ctypes failure on OpenIndiana buildbot where _ctypes is not built
Merge with 3.4
Issue #22644: Update the Windows build to OpenSSL 1.0.1j
Issue #22644: Update the Windows build to OpenSSL 1.0.1j
Issue #22653: Fix an assertion failure in debug mode when doing a reentrant dict insertion in debug mode.
Issue #22653: Fix an assertion failure in debug mode when doing a reentrant dict insertion in debug mode.
Turn externals cleaning back off
#21991: make headerregistry params property MappingProxyType.

It is unlikely anyone is using the fact that the dictionary returned
by the 'params' attribute was previously writable, but even if someone
is the API is provisional so this kind of change is acceptable (and
needed, to get the API "right" before it becomes official).

Patch by Stéphane Wirtel.
Merge: #21991: make headerregistry params property MappingProxyType.
#9351: set_defaults on subparser is no longer ignored if set on parent.

Before, if a default was set on the parent parser, any default for that
variable set via set_defaults on a subparser would be ignored.  Now
the subparser set_defaults is honored.

Patch by Jyrki Pullianinen.
Merge: #9351: set_defaults on subparser is no longer ignored if set on parent.
#18853: Fix resource warning in shlex's __main__ section.

Report and original fix by Vajrasky Kok.
Merge: #18853: Fix resource warning in shlex's __main__ section.
Issue #17401: document closefd in io.FileIO docs and add to repr

closefd was documented in the open docs but not the matching FileIO
class documented. Further, closefd, part of the core state for the
object was not shown.

In review it was noted that the open docs are a little confusing about
the interaction between closefd and paths, so tweaked them at the same
time.
Issue7186: document that __doc__ is not inherited by subclasses
Issue7186: document that __doc__ is not inherited by subclasses
Issue #20155: Fix non-buildbot test failure on Windows.  Patch by Claudiu Popa,
revised by R. David Murray.