cpython: 2a126ce6f83e (original) (raw)

Mercurial > cpython

changeset 93662:2a126ce6f83e

merge 3.4 (#22960) [#22960]

Benjamin Peterson benjamin@python.org
date Sat, 29 Nov 2014 23:34:30 -0500
parents 4990157343c6(current diff)4b00430388ad(diff)
children 13e286c718cb
files Doc/library/xmlrpc.client.rst Lib/xmlrpc/client.py Misc/NEWS
diffstat 3 files changed, 22 insertions(+), 6 deletions(-)[+] [-] Doc/library/xmlrpc.client.rst 11 Lib/xmlrpc/client.py 15 Misc/NEWS 2

line wrap: on

line diff

--- a/Doc/library/xmlrpc.client.rst +++ b/Doc/library/xmlrpc.client.rst @@ -27,14 +27,14 @@ between conformable Python objects and X constructed data. If you need to parse untrusted or unauthenticated data see :ref:xml-vulnerabilities. -.. versionchanged:: 3.4.3 +.. versionchanged:: 3.5 For https URIs, :mod:xmlrpc.client now performs all the necessary certificate and hostname checks by default .. class:: ServerProxy(uri, transport=None, encoding=None, verbose=False, [](#l1.13) allow_none=False, use_datetime=False, [](#l1.14)

.. versionchanged:: 3.3 The use_builtin_types flag was added. @@ -63,7 +63,9 @@ between conformable Python objects and X portion will be base64-encoded as an HTTP 'Authorization' header, and sent to the remote server as part of the connection process when invoking an XML-RPC method. You only need to use this if the remote server requires a Basic

+ .. seealso::

--- a/Lib/xmlrpc/client.py +++ b/Lib/xmlrpc/client.py @@ -1324,6 +1324,11 @@ class Transport: class SafeTransport(Transport): """Handles an HTTPS transaction to an XML-RPC server."""

+ # FIXME: mostly untested def make_connection(self, host): @@ -1337,7 +1342,7 @@ class SafeTransport(Transport): # host may be a string, or a (host, x509-dict) tuple chost, self._extra_headers, x509 = self.get_host_info(host) self._connection = host, http.client.HTTPSConnection(chost,

## @@ -1380,7 +1385,8 @@ class ServerProxy: """ def init(self, uri, transport=None, encoding=None, verbose=False,

# get the url @@ -1394,10 +1400,13 @@ class ServerProxy: if transport is None: if type == "https": handler = SafeTransport

self.__encoding = encoding or 'utf-8'

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -191,6 +191,8 @@ Core and Builtins Library ------- +- Issue #22960: Add a context argument to xmlrpclib.ServerProxy constructor. +