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
e968ead1
Kaydet (Commit)
e968ead1
authored
Eki 04, 2001
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Give me back my page breaks.
üst
a68ca35a
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
22 additions
and
22 deletions
+22
-22
Encoders.py
Lib/email/Encoders.py
+5
-5
Errors.py
Lib/email/Errors.py
+1
-1
Generator.py
Lib/email/Generator.py
+3
-3
Iterators.py
Lib/email/Iterators.py
+2
-2
MIMEBase.py
Lib/email/MIMEBase.py
+1
-1
MIMEImage.py
Lib/email/MIMEImage.py
+1
-1
MIMEMessage.py
Lib/email/MIMEMessage.py
+1
-1
MIMEText.py
Lib/email/MIMEText.py
+1
-1
Message.py
Lib/email/Message.py
+1
-1
Parser.py
Lib/email/Parser.py
+1
-1
Utils.py
Lib/email/Utils.py
+4
-4
__init__.py
Lib/email/__init__.py
+1
-1
No files found.
Lib/email/Encoders.py
Dosyayı görüntüle @
e968ead1
...
...
@@ -8,7 +8,7 @@ import base64
from
quopri
import
encodestring
as
_encodestring
# Helpers
def
_qencode
(
s
):
return
_encodestring
(
s
,
quotetabs
=
1
)
...
...
@@ -26,7 +26,7 @@ def _bencode(s):
return
value
def
encode_base64
(
msg
):
"""Encode the message's payload in Base64.
...
...
@@ -38,7 +38,7 @@ def encode_base64(msg):
msg
[
'Content-Transfer-Encoding'
]
=
'base64'
def
encode_quopri
(
msg
):
"""Encode the message's payload in Quoted-Printable.
...
...
@@ -50,7 +50,7 @@ def encode_quopri(msg):
msg
[
'Content-Transfer-Encoding'
]
=
'quoted-printable'
def
encode_7or8bit
(
msg
):
"""Set the Content-Transfer-Encoding: header to 7bit or 8bit."""
orig
=
msg
.
get_payload
()
...
...
@@ -64,6 +64,6 @@ def encode_7or8bit(msg):
msg
[
'Content-Transfer-Encoding'
]
=
'7bit'
def
encode_noop
(
msg
):
"""Do nothing."""
Lib/email/Errors.py
Dosyayı görüntüle @
e968ead1
...
...
@@ -5,7 +5,7 @@
"""
class
MessageError
(
Exception
):
"""Base class for errors in this module."""
...
...
Lib/email/Generator.py
Dosyayı görüntüle @
e968ead1
...
...
@@ -25,7 +25,7 @@ SPACE8 = ' ' * 8
fcre
=
re
.
compile
(
r'^From '
,
re
.
MULTILINE
)
class
Generator
:
"""Generates output from a Message object tree.
...
...
@@ -278,7 +278,7 @@ class Generator:
self
.
_fp
.
write
(
s
.
getvalue
())
class
DecodedGenerator
(
Generator
):
"""Generator a text representation of a message.
...
...
@@ -334,7 +334,7 @@ class DecodedGenerator(Generator):
}
# Helper
def
_make_boundary
(
self
,
text
=
None
):
# Craft a random boundary. If text is given, ensure that the chosen
...
...
Lib/email/Iterators.py
Dosyayı görüntüle @
e968ead1
...
...
@@ -9,7 +9,7 @@ from cStringIO import StringIO
from
types
import
StringType
def
body_line_iterator
(
msg
):
"""Iterate over the parts, returning string payloads line-by-line."""
for
subpart
in
msg
.
walk
():
...
...
@@ -19,7 +19,7 @@ def body_line_iterator(msg):
yield
line
def
typed_subpart_iterator
(
msg
,
maintype
=
'text'
,
subtype
=
None
):
"""Iterate over the subparts with a given MIME type.
...
...
Lib/email/MIMEBase.py
Dosyayı görüntüle @
e968ead1
...
...
@@ -7,7 +7,7 @@
import
Message
class
MIMEBase
(
Message
.
Message
):
"""Base class for MIME specializations."""
...
...
Lib/email/MIMEImage.py
Dosyayı görüntüle @
e968ead1
...
...
@@ -12,7 +12,7 @@ import Errors
import
Encoders
class
MIMEImage
(
MIMEBase
.
MIMEBase
):
"""Class for generating image/* type MIME documents."""
...
...
Lib/email/MIMEMessage.py
Dosyayı görüntüle @
e968ead1
...
...
@@ -8,7 +8,7 @@ import Message
import
MIMEBase
class
MIMEMessage
(
MIMEBase
.
MIMEBase
):
"""Class representing message/* MIME documents."""
...
...
Lib/email/MIMEText.py
Dosyayı görüntüle @
e968ead1
...
...
@@ -8,7 +8,7 @@ import MIMEBase
from
Encoders
import
encode_7or8bit
class
MIMEText
(
MIMEBase
.
MIMEBase
):
"""Class for generating text/* type MIME documents."""
...
...
Lib/email/Message.py
Dosyayı görüntüle @
e968ead1
...
...
@@ -20,7 +20,7 @@ SEMISPACE = '; '
paramre
=
re
.
compile
(
r';\s*'
)
class
Message
:
"""Basic message object for use inside the object tree.
...
...
Lib/email/Parser.py
Dosyayı görüntüle @
e968ead1
...
...
@@ -14,7 +14,7 @@ EMPTYSTRING = ''
NL
=
'
\n
'
class
Parser
:
def
__init__
(
self
,
_class
=
Message
.
Message
):
"""Parser of RFC 2822 and MIME email messages.
...
...
Lib/email/Utils.py
Dosyayı görüntüle @
e968ead1
...
...
@@ -21,7 +21,7 @@ COMMASPACE = ', '
UEMPTYSTRING
=
u''
# Helpers
def
_identity
(
s
):
...
...
@@ -42,7 +42,7 @@ def _bdecode(s):
return
value
def
getaddresses
(
fieldvalues
):
"""Return a list of (REALNAME, EMAIL) for each fieldvalue."""
all
=
COMMASPACE
.
join
(
fieldvalues
)
...
...
@@ -50,7 +50,7 @@ def getaddresses(fieldvalues):
return
a
.
getaddrlist
()
ecre
=
re
.
compile
(
r'''
=\? # literal =?
(?P<charset>[^?]*?) # non-greedy up to the next ? is the charset
...
...
@@ -92,7 +92,7 @@ def decode(s):
return
UEMPTYSTRING
.
join
(
rtn
)
def
encode
(
s
,
charset
=
'iso-8859-1'
,
encoding
=
'q'
):
"""Encode a string according to RFC 2047."""
if
encoding
.
lower
()
==
'q'
:
...
...
Lib/email/__init__.py
Dosyayı görüntüle @
e968ead1
...
...
@@ -22,7 +22,7 @@ __all__ = ['Encoders',
]
# Some convenience routines
from
Parser
import
Parser
as
_Parser
from
Message
import
Message
as
_Message
...
...
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