]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.6] bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268). (GH-10281)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 1 Nov 2018 12:19:37 +0000 (14:19 +0200)
committerGitHub <noreply@github.com>
Thu, 1 Nov 2018 12:19:37 +0000 (14:19 +0200)
(cherry picked from commit 4b5e62dbb22a3593e0db266c12f805b727a42b00)

Co-authored-by: Pablo Aguiar <scorphus@gmail.com>
Lib/ftplib.py
Lib/imaplib.py
Lib/poplib.py
Lib/smtplib.py

index a02e595cb0226f7fa0a0cbcf0756f24e7421631e..2ff251a0f7d9951c361373a2cc75dcfd8116770d 100644 (file)
@@ -732,7 +732,7 @@ else:
                                  "exclusive")
             if keyfile is not None or certfile is not None:
                 import warnings
-                warnings.warn("keyfile and certfile are deprecated, use a"
+                warnings.warn("keyfile and certfile are deprecated, use a "
                               "custom context instead", DeprecationWarning, 2)
             self.keyfile = keyfile
             self.certfile = certfile
index b9a01d636f780ebdeb12d2018754facf49474855..67b2cc02c40f18da88808ebbfdbcc630f1a9c865 100644 (file)
@@ -1277,7 +1277,7 @@ if HAVE_SSL:
                                  "exclusive")
             if keyfile is not None or certfile is not None:
                 import warnings
-                warnings.warn("keyfile and certfile are deprecated, use a"
+                warnings.warn("keyfile and certfile are deprecated, use a "
                               "custom ssl_context instead", DeprecationWarning, 2)
             self.keyfile = keyfile
             self.certfile = certfile
index d8a62c0343276e7551a5a747eec19ece63b4b903..9796f0d2f9c552e88890463147f402fd7a8f0d91 100644 (file)
@@ -436,7 +436,7 @@ if HAVE_SSL:
                                  "exclusive")
             if keyfile is not None or certfile is not None:
                 import warnings
-                warnings.warn("keyfile and certfile are deprecated, use a"
+                warnings.warn("keyfile and certfile are deprecated, use a "
                               "custom context instead", DeprecationWarning, 2)
             self.keyfile = keyfile
             self.certfile = certfile
index 5e1bc0b198ed8947e9e4656e8a44fb479631b8e0..6091c7fb7acadc552d074247f5f5ab16c17c929e 100755 (executable)
@@ -762,7 +762,7 @@ class SMTP:
                                  "exclusive")
             if keyfile is not None or certfile is not None:
                 import warnings
-                warnings.warn("keyfile and certfile are deprecated, use a"
+                warnings.warn("keyfile and certfile are deprecated, use a "
                               "custom context instead", DeprecationWarning, 2)
             if context is None:
                 context = ssl._create_stdlib_context(certfile=certfile,
@@ -1019,7 +1019,7 @@ if _have_ssl:
                                  "exclusive")
             if keyfile is not None or certfile is not None:
                 import warnings
-                warnings.warn("keyfile and certfile are deprecated, use a"
+                warnings.warn("keyfile and certfile are deprecated, use a "
                               "custom context instead", DeprecationWarning, 2)
             self.keyfile = keyfile
             self.certfile = certfile