Commit 4b5e62db authored by Pablo Aguiar's avatar Pablo Aguiar Committed by Serhiy Storchaka

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

parent a1c249c4
...@@ -66,7 +66,7 @@ class BZ2File(_compression.BaseStream): ...@@ -66,7 +66,7 @@ class BZ2File(_compression.BaseStream):
self._mode = _MODE_CLOSED self._mode = _MODE_CLOSED
if buffering is not _sentinel: 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.", "since Python 3.0.",
DeprecationWarning, DeprecationWarning,
stacklevel=2) stacklevel=2)
......
...@@ -732,7 +732,7 @@ else: ...@@ -732,7 +732,7 @@ else:
"exclusive") "exclusive")
if keyfile is not None or certfile is not None: if keyfile is not None or certfile is not None:
import warnings 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) "custom context instead", DeprecationWarning, 2)
self.keyfile = keyfile self.keyfile = keyfile
self.certfile = certfile self.certfile = certfile
......
...@@ -1277,7 +1277,7 @@ if HAVE_SSL: ...@@ -1277,7 +1277,7 @@ if HAVE_SSL:
"exclusive") "exclusive")
if keyfile is not None or certfile is not None: if keyfile is not None or certfile is not None:
import warnings 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) "custom ssl_context instead", DeprecationWarning, 2)
self.keyfile = keyfile self.keyfile = keyfile
self.certfile = certfile self.certfile = certfile
......
...@@ -436,7 +436,7 @@ if HAVE_SSL: ...@@ -436,7 +436,7 @@ if HAVE_SSL:
"exclusive") "exclusive")
if keyfile is not None or certfile is not None: if keyfile is not None or certfile is not None:
import warnings 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) "custom context instead", DeprecationWarning, 2)
self.keyfile = keyfile self.keyfile = keyfile
self.certfile = certfile self.certfile = certfile
......
...@@ -764,7 +764,7 @@ class SMTP: ...@@ -764,7 +764,7 @@ class SMTP:
"exclusive") "exclusive")
if keyfile is not None or certfile is not None: if keyfile is not None or certfile is not None:
import warnings 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) "custom context instead", DeprecationWarning, 2)
if context is None: if context is None:
context = ssl._create_stdlib_context(certfile=certfile, context = ssl._create_stdlib_context(certfile=certfile,
...@@ -1021,7 +1021,7 @@ if _have_ssl: ...@@ -1021,7 +1021,7 @@ if _have_ssl:
"exclusive") "exclusive")
if keyfile is not None or certfile is not None: if keyfile is not None or certfile is not None:
import warnings 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) "custom context instead", DeprecationWarning, 2)
self.keyfile = keyfile self.keyfile = keyfile
self.certfile = certfile self.certfile = certfile
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment