Skip to content

Commit

Permalink
bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268)
Browse files Browse the repository at this point in the history
  • Loading branch information
scorphus authored and serhiy-storchaka committed Nov 1, 2018
1 parent a1c249c commit 4b5e62d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Lib/bz2.py
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Lib/ftplib.py
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Lib/imaplib.py
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Lib/poplib.py
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Lib/smtplib.py
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4b5e62d

Please sign in to comment.