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
11fbef5f
Kaydet (Commit)
11fbef5f
authored
Ara 02, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Sjoerd sez: global substitute \240 with \177.
üst
30e817ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mimify.py
Lib/mimify.py
+4
-4
No files found.
Lib/mimify.py
Dosyayı görüntüle @
11fbef5f
...
...
@@ -214,8 +214,8 @@ def unmimify(infile, outfile, decode_base64 = 0):
unmimify_part
(
nifile
,
ofile
,
decode_base64
)
ofile
.
flush
()
mime_char
=
re
.
compile
(
'[=
\
240
-
\377
]'
)
# quote these chars in body
mime_header_char
=
re
.
compile
(
'[=?
\
240
-
\377
]'
)
# quote these in header
mime_char
=
re
.
compile
(
'[=
\
177
-
\377
]'
)
# quote these chars in body
mime_header_char
=
re
.
compile
(
'[=?
\
177
-
\377
]'
)
# quote these in header
def
mime_encode
(
line
,
header
):
'''Code a single line as quoted-printable.
...
...
@@ -249,7 +249,7 @@ def mime_encode(line, header):
line
=
line
[
i
:]
return
newline
+
line
mime_header
=
re
.
compile
(
'([
\t
(]|^)([-a-zA-Z0-9_+]*[
\
240
-
\377
][-a-zA-Z0-9_+
\240
-
\377
]*)([
\t
)]|
\n
)'
)
mime_header
=
re
.
compile
(
'([
\t
(]|^)([-a-zA-Z0-9_+]*[
\
177
-
\377
][-a-zA-Z0-9_+
\177
-
\377
]*)([
\t
)]|
\n
)'
)
def
mime_encode_header
(
line
):
'''Code a single header line as quoted-printable.'''
...
...
@@ -267,7 +267,7 @@ def mime_encode_header(line):
mv
=
re
.
compile
(
'^mime-version:'
,
re
.
I
)
cte
=
re
.
compile
(
'^content-transfer-encoding:'
,
re
.
I
)
iso_char
=
re
.
compile
(
'[
\
240
-
\377
]'
)
iso_char
=
re
.
compile
(
'[
\
177
-
\377
]'
)
def
mimify_part
(
ifile
,
ofile
,
is_mime
):
'''Convert an 8bit part of a MIME mail message to quoted-printable.'''
...
...
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