[Python-checkins] bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268)

Serhiy Storchaka webhook-mailer at python.org
Thu Nov 1 06:33:48 EDT 2018


https://github.com/python/cpython/commit/4b5e62dbb22a3593e0db266c12f805b727a42b00
commit: 4b5e62dbb22a3593e0db266c12f805b727a42b00
branch: master
author: Pablo Aguiar <scorphus at gmail.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2018-11-01T12:33:35+02:00
summary:

bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268)

files:
M Lib/bz2.py
M Lib/ftplib.py
M Lib/imaplib.py
M Lib/poplib.py
M Lib/smtplib.py

diff --git a/Lib/bz2.py b/Lib/bz2.py
index 3ab099147190..21e8ff49c67b 100644
--- a/Lib/bz2.py
+++ b/Lib/bz2.py
@@ -66,7 +66,7 @@ def __init__(self, filename, mode="r", buffering=_sentinel, compresslevel=9):
         self._mode = _MODE_CLOSED
 
         if buffering is not _sentinel:
-            warnings.warn("Use of 'buffering' argument is deprecated  and ignored"
+            warnings.warn("Use of 'buffering' argument is deprecated and ignored "
                           "since Python 3.0.",
                           DeprecationWarning,
                           stacklevel=2)
diff --git a/Lib/ftplib.py b/Lib/ftplib.py
index 05840d492360..9611282ecacb 100644
--- a/Lib/ftplib.py
+++ b/Lib/ftplib.py
@@ -732,7 +732,7 @@ def __init__(self, host='', user='', passwd='', acct='', keyfile=None,
                                  "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 e451413acf5a..dd237f7704ac 100644
--- a/Lib/imaplib.py
+++ b/Lib/imaplib.py
@@ -1277,7 +1277,7 @@ def __init__(self, host='', port=IMAP4_SSL_PORT, keyfile=None,
                                  "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 d8a62c034327..9796f0d2f9c5 100644
--- a/Lib/poplib.py
+++ b/Lib/poplib.py
@@ -436,7 +436,7 @@ def __init__(self, host, port=POP3_SSL_PORT, keyfile=None, certfile=None,
                                  "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 acfc3586e1c0..3c5ac75ab8ab 100755
--- a/Lib/smtplib.py
+++ b/Lib/smtplib.py
@@ -764,7 +764,7 @@ def starttls(self, keyfile=None, certfile=None, context=None):
                                  "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,
@@ -1021,7 +1021,7 @@ def __init__(self, host='', port=0, local_hostname=None,
                                  "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



More information about the Python-checkins mailing list