]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.7] bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268). (GH-10280)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 1 Nov 2018 12:19:23 +0000 (14:19 +0200)
committerGitHub <noreply@github.com>
Thu, 1 Nov 2018 12:19:23 +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 05840d492360a0cd5b455095fe9086048e9f4d1a..9611282ecacb25a6b8b5b662fc434acfebdc5dba 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 e451413acf5a21b0bc198f3e5cdae2298625c758..dd237f7704aca0b66733951be5bdc61133d2b30b 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