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
5f253279
Kaydet (Commit)
5f253279
authored
Eyl 28, 2002
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add a pychecker suppression.
üst
7f232121
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
MIMENonMultipart.py
Lib/email/MIMENonMultipart.py
+4
-0
No files found.
Lib/email/MIMENonMultipart.py
Dosyayı görüntüle @
5f253279
...
@@ -12,9 +12,13 @@ from email import MIMEBase
...
@@ -12,9 +12,13 @@ from email import MIMEBase
class
MIMENonMultipart
(
MIMEBase
.
MIMEBase
):
class
MIMENonMultipart
(
MIMEBase
.
MIMEBase
):
"""Base class for MIME multipart/* type messages."""
"""Base class for MIME multipart/* type messages."""
__pychecker__
=
'unusednames=payload'
def
attach
(
self
,
payload
):
def
attach
(
self
,
payload
):
# The public API prohibits attaching multiple subparts to MIMEBase
# The public API prohibits attaching multiple subparts to MIMEBase
# derived subtypes since none of them are, by definition, of content
# derived subtypes since none of them are, by definition, of content
# type multipart/*
# type multipart/*
raise
Errors
.
MultipartConversionError
(
raise
Errors
.
MultipartConversionError
(
'Cannot attach additional subparts to non-multipart/*'
)
'Cannot attach additional subparts to non-multipart/*'
)
del
__pychecker__
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