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
89c90daf
Commit
89c90daf
authored
Jun 11, 2016
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
raise an error when STARTTLS fails
parent
7ce9f8ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
Lib/smtplib.py
Lib/smtplib.py
+5
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/smtplib.py
View file @
89c90daf
...
...
@@ -695,6 +695,11 @@ class SMTP:
self
.
ehlo_resp
=
None
self
.
esmtp_features
=
{}
self
.
does_esmtp
=
0
else
:
# RFC 3207:
# 501 Syntax error (no parameters allowed)
# 454 TLS not available due to temporary reason
raise
SMTPResponseException
(
resp
,
reply
)
return
(
resp
,
reply
)
def
sendmail
(
self
,
from_addr
,
to_addrs
,
msg
,
mail_options
=
[],
...
...
Misc/NEWS
View file @
89c90daf
...
...
@@ -19,6 +19,9 @@ Core and Builtins
Library
-------
- Fix TLS stripping vulnerability in smptlib, CVE-2016-0772. Reported by Team
Oststrom
- Issue #25939: On Windows open the cert store readonly in ssl.enum_certificates.
- Issue #26012: Don'
t
traverse
into
symlinks
for
**
pattern
in
...
...
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