diff options
-rw-r--r-- | Doc/library/ssl.rst | 9 | ||||
-rw-r--r-- | Include/pymath.h | 2 | ||||
-rwxr-xr-x | Lib/lib2to3/refactor.py | 2 |
3 files changed, 12 insertions, 1 deletions
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index a0a6478..8e1c6b0 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -335,6 +335,15 @@ SSLSocket Objects established, returns ``None``. +.. method:: SSLSocket.unwrap() + + Performs the SSL shutdown handshake, which removes the TLS layer + from the underlying socket, and returns the underlying socket + object. This can be used to go from encrypted operation over a + connection to unencrypted. The returned socket should always be + used for further communication with the other side of the + connection, rather than the original socket + .. index:: single: certificates .. index:: single: X509 certificate diff --git a/Include/pymath.h b/Include/pymath.h index a3735c2..7cea9ae 100644 --- a/Include/pymath.h +++ b/Include/pymath.h @@ -19,7 +19,7 @@ functions and constants *Note: PC/pyconfig.h defines copysign as _copysign */ #ifndef HAVE_COPYSIGN -extern double copysign(doube, double); +extern double copysign(double, double); #endif #ifndef HAVE_ACOSH diff --git a/Lib/lib2to3/refactor.py b/Lib/lib2to3/refactor.py index e4bc2e8..3e93da6 100755 --- a/Lib/lib2to3/refactor.py +++ b/Lib/lib2to3/refactor.py @@ -177,6 +177,8 @@ class RefactoringTool(object): else: fixer_pkg = self.fixer_dir fixer_pkg = fixer_pkg.replace(os.path.sep, ".") + if os.path.altsep: + fixer_pkg = self.fixer_dir.replace(os.path.altsep, ".") pre_order_fixers = [] post_order_fixers = [] fix_names = self.options.fix |