summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-11-01 14:19:23 +0200
committerGitHub <noreply@github.com>2018-11-01 14:19:23 +0200
commit5e0537cf7e5b0a5ef134c7da0b68b8e55c69f4b0 (patch)
treee185b0ce54554a894cc495d1c9560d4704351f3a
parent192c54713b4c67a8d14b2d98056771feba40ca37 (diff)
downloadcpython-git-5e0537cf7e5b0a5ef134c7da0b68b8e55c69f4b0.tar.gz
[3.7] bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268). (GH-10280)
(cherry picked from commit 4b5e62dbb22a3593e0db266c12f805b727a42b00) Co-authored-by: Pablo Aguiar <scorphus@gmail.com>
-rw-r--r--Lib/ftplib.py2
-rw-r--r--Lib/imaplib.py2
-rw-r--r--Lib/poplib.py2
-rwxr-xr-xLib/smtplib.py4
4 files changed, 5 insertions, 5 deletions
diff --git a/Lib/ftplib.py b/Lib/ftplib.py
index 05840d4923..9611282eca 100644
--- a/Lib/ftplib.py
+++ b/Lib/ftplib.py
@@ -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
diff --git a/Lib/imaplib.py b/Lib/imaplib.py
index e451413acf..dd237f7704 100644
--- a/Lib/imaplib.py
+++ b/Lib/imaplib.py
@@ -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
diff --git a/Lib/poplib.py b/Lib/poplib.py
index d8a62c0343..9796f0d2f9 100644
--- a/Lib/poplib.py
+++ b/Lib/poplib.py
@@ -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
diff --git a/Lib/smtplib.py b/Lib/smtplib.py
index 5e1bc0b198..6091c7fb7a 100755
--- a/Lib/smtplib.py
+++ b/Lib/smtplib.py
@@ -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