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

(cherry picked from commit 4b5e62dbb2)

Co-authored-by: Pablo Aguiar <scorphus@gmail.com>
This commit is contained in:
Serhiy Storchaka 2018-11-01 14:19:23 +02:00 committed by GitHub
parent 192c54713b
commit 5e0537cf7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -762,7 +762,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,
@ -1019,7 +1019,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