]> granicus.if.org Git - python/commitdiff
bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268)
authorPablo Aguiar <scorphus@gmail.com>
Thu, 1 Nov 2018 10:33:35 +0000 (11:33 +0100)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 1 Nov 2018 10:33:35 +0000 (12:33 +0200)
Lib/bz2.py
Lib/ftplib.py
Lib/imaplib.py
Lib/poplib.py
Lib/smtplib.py

index 3ab099147190735172d6f537f0fc64d7043624bc..21e8ff49c67b38882827d04475186593787d0dfc 100644 (file)
@@ -66,7 +66,7 @@ class BZ2File(_compression.BaseStream):
         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)
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 acfc3586e1c0545d92d2555502c142e4b72bc379..3c5ac75ab8abe23cac633e8678e5243804952ff6 100755 (executable)
@@ -764,7 +764,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,
@@ -1021,7 +1021,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