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
0c5e049c
Kaydet (Commit)
0c5e049c
authored
Nis 16, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Reindented with 4 spaces.
üst
7cfd31ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
mhlib.py
Lib/mhlib.py
+3
-6
No files found.
Lib/mhlib.py
Dosyayı görüntüle @
0c5e049c
...
@@ -421,8 +421,7 @@ class Folder:
...
@@ -421,8 +421,7 @@ class Folder:
else
:
else
:
if
n
not
in
all
:
if
n
not
in
all
:
if
isnumeric
(
seq
):
if
isnumeric
(
seq
):
raise
Error
,
\
raise
Error
,
"message
%
d doesn't exist"
%
n
"message
%
d doesn't exist"
%
n
else
:
else
:
raise
Error
,
"no
%
s message"
%
seq
raise
Error
,
"no
%
s message"
%
seq
else
:
else
:
...
@@ -686,8 +685,7 @@ class Message(mimetools.Message):
...
@@ -686,8 +685,7 @@ class Message(mimetools.Message):
# (almost) as a Message object.
# (almost) as a Message object.
def
getbodyparts
(
self
):
def
getbodyparts
(
self
):
if
self
.
getmaintype
()
!=
'multipart'
:
if
self
.
getmaintype
()
!=
'multipart'
:
raise
Error
,
\
raise
Error
,
'Content-Type is not multipart/*'
'Content-Type is not multipart/*'
bdry
=
self
.
getparam
(
'boundary'
)
bdry
=
self
.
getparam
(
'boundary'
)
if
not
bdry
:
if
not
bdry
:
raise
Error
,
'multipart/* without boundary param'
raise
Error
,
'multipart/* without boundary param'
...
@@ -894,8 +892,7 @@ def pickline(file, key, casefold = 1):
...
@@ -894,8 +892,7 @@ def pickline(file, key, casefold = 1):
text
=
line
[
len
(
key
)
+
1
:]
text
=
line
[
len
(
key
)
+
1
:]
while
1
:
while
1
:
line
=
f
.
readline
()
line
=
f
.
readline
()
if
not
line
or
\
if
not
line
or
line
[
0
]
not
in
string
.
whitespace
:
line
[
0
]
not
in
string
.
whitespace
:
break
break
text
=
text
+
line
text
=
text
+
line
return
string
.
strip
(
text
)
return
string
.
strip
(
text
)
...
...
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