Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
8e37d5df
Kaydet (Commit)
8e37d5df
authored
Nis 13, 2013
tarafından
R David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#2118: Make SMTPException a subclass of IOError.
Initial patch by Ned Jackson Lovely.
üst
c1d3daf5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
3 deletions
+16
-3
smtplib.rst
Doc/library/smtplib.rst
+2
-2
3.4.rst
Doc/whatsnew/3.4.rst
+11
-0
smtplib.py
Lib/smtplib.py
+1
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Doc/library/smtplib.rst
Dosyayı görüntüle @
8e37d5df
...
...
@@ -103,8 +103,8 @@ A nice selection of exceptions is defined as well:
.. exception:: SMTPException
The base exception class for all the other excpetions provided by this
module.
Subclass of :exc:`IOError` that is the base exception class for all
the other excpetions provided by this
module.
.. exception:: SMTPServerDisconnected
...
...
Doc/whatsnew/3.4.rst
Dosyayı görüntüle @
8e37d5df
...
...
@@ -151,12 +151,23 @@ New Modules
Improved Modules
================
doctest
-------
Added ``FAIL_FAST`` flag to halt test running as soon as the first failure is
detected. (Contributed by R. David Murray and Daniel Urban in :issue:`16522`.)
smtplib
-------
:exc:`~smtplib.SMTPException` is now a subclass of :exc:`IOError`, which allows
both socket level errors and SMTP protocol level errors to be caught in one
try/except statement by code that only cares whether or not an error occurred.
(:issue:`2118`).
wave
----
...
...
Lib/smtplib.py
Dosyayı görüntüle @
8e37d5df
...
...
@@ -66,7 +66,7 @@ bCRLF = b"\r\n"
OLDSTYLE_AUTH
=
re
.
compile
(
r"auth=(.*)"
,
re
.
I
)
# Exception classes used by this module.
class
SMTPException
(
Exception
):
class
SMTPException
(
IOError
):
"""Base class for all exceptions raised by this module."""
class
SMTPServerDisconnected
(
SMTPException
):
...
...
Misc/NEWS
Dosyayı görüntüle @
8e37d5df
...
...
@@ -42,6 +42,8 @@ Core and Builtins
Library
-------
-
Issue
#
2118
:
SMTPException
is
now
a
subclass
of
IOError
.
-
Issue
#
17016
:
Get
rid
of
possible
pointer
wraparounds
and
integer
overflows
in
the
re
module
.
Patch
by
Nickolai
Zeldovich
.
...
...
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