Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4b5e62db
Commit
4b5e62db
authored
Nov 01, 2018
by
Pablo Aguiar
Committed by
Serhiy Storchaka
Nov 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268)
parent
a1c249c4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
Lib/bz2.py
Lib/bz2.py
+1
-1
Lib/ftplib.py
Lib/ftplib.py
+1
-1
Lib/imaplib.py
Lib/imaplib.py
+1
-1
Lib/poplib.py
Lib/poplib.py
+1
-1
Lib/smtplib.py
Lib/smtplib.py
+2
-2
No files found.
Lib/bz2.py
View file @
4b5e62db
...
...
@@ -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
)
...
...
Lib/ftplib.py
View file @
4b5e62db
...
...
@@ -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
...
...
Lib/imaplib.py
View file @
4b5e62db
...
...
@@ -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
...
...
Lib/poplib.py
View file @
4b5e62db
...
...
@@ -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
...
...
Lib/smtplib.py
View file @
4b5e62db
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment