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
003014bf
Kaydet (Commit)
003014bf
authored
Eyl 21, 2012
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#15980: properly escape newlines in docstrings. Patch by Serhiy Storchaka.
üst
3d2fc15f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
_LWPCookieJar.py
Lib/_LWPCookieJar.py
+2
-2
base64mime.py
Lib/email/base64mime.py
+1
-1
utils.py
Lib/email/utils.py
+2
-2
rfc822.py
Lib/rfc822.py
+1
-1
No files found.
Lib/_LWPCookieJar.py
Dosyayı görüntüle @
003014bf
...
@@ -48,7 +48,7 @@ def lwp_cookie_str(cookie):
...
@@ -48,7 +48,7 @@ def lwp_cookie_str(cookie):
class
LWPCookieJar
(
FileCookieJar
):
class
LWPCookieJar
(
FileCookieJar
):
"""
"""
The LWPCookieJar saves a sequence of"Set-Cookie3" lines.
The LWPCookieJar saves a sequence of
"Set-Cookie3" lines.
"Set-Cookie3" is the format used by the libwww-perl libary, not known
"Set-Cookie3" is the format used by the libwww-perl libary, not known
to be compatible with any browser, but which is easy to read and
to be compatible with any browser, but which is easy to read and
doesn't lose information about RFC 2965 cookies.
doesn't lose information about RFC 2965 cookies.
...
@@ -60,7 +60,7 @@ class LWPCookieJar(FileCookieJar):
...
@@ -60,7 +60,7 @@ class LWPCookieJar(FileCookieJar):
"""
"""
def
as_lwp_str
(
self
,
ignore_discard
=
True
,
ignore_expires
=
True
):
def
as_lwp_str
(
self
,
ignore_discard
=
True
,
ignore_expires
=
True
):
"""Return cookies as a string of "
\n
"-separated "Set-Cookie3" headers.
"""Return cookies as a string of "
\
\
n"-separated "Set-Cookie3" headers.
ignore_discard and ignore_expires: see docstring for FileCookieJar.save
ignore_discard and ignore_expires: see docstring for FileCookieJar.save
...
...
Lib/email/base64mime.py
Dosyayı görüntüle @
003014bf
...
@@ -130,7 +130,7 @@ def encode(s, binary=True, maxlinelen=76, eol=NL):
...
@@ -130,7 +130,7 @@ def encode(s, binary=True, maxlinelen=76, eol=NL):
verbatim (this is the default).
verbatim (this is the default).
Each line of encoded text will end with eol, which defaults to "
\\
n". Set
Each line of encoded text will end with eol, which defaults to "
\\
n". Set
this to "
\
r
\n
" if you will be using the result of this function directly
this to "
\
\
r
\
\
n" if you will be using the result of this function directly
in an email.
in an email.
"""
"""
if
not
s
:
if
not
s
:
...
...
Lib/email/utils.py
Dosyayı görüntüle @
003014bf
...
@@ -63,7 +63,7 @@ def _bdecode(s):
...
@@ -63,7 +63,7 @@ def _bdecode(s):
"""Decodes a base64 string.
"""Decodes a base64 string.
This function is equivalent to base64.decodestring and it's retained only
This function is equivalent to base64.decodestring and it's retained only
for backward compatibility. It used to remove the last
\n
of the decoded
for backward compatibility. It used to remove the last
\
\
n of the decoded
string, if it had any (see issue 7143).
string, if it had any (see issue 7143).
"""
"""
if
not
s
:
if
not
s
:
...
@@ -73,7 +73,7 @@ def _bdecode(s):
...
@@ -73,7 +73,7 @@ def _bdecode(s):
def
fix_eols
(
s
):
def
fix_eols
(
s
):
"""Replace all line-ending characters with
\
r
\n
."""
"""Replace all line-ending characters with
\
\
r
\
\
n."""
# Fix newlines with no preceding carriage return
# Fix newlines with no preceding carriage return
s
=
re
.
sub
(
r'(?<!\r)\n'
,
CRLF
,
s
)
s
=
re
.
sub
(
r'(?<!\r)\n'
,
CRLF
,
s
)
# Fix carriage returns with no following newline
# Fix carriage returns with no following newline
...
...
Lib/rfc822.py
Dosyayı görüntüle @
003014bf
...
@@ -212,7 +212,7 @@ class Message:
...
@@ -212,7 +212,7 @@ class Message:
You may override this method if your application wants to bend the
You may override this method if your application wants to bend the
rules, e.g. to strip trailing whitespace, or to recognize MH template
rules, e.g. to strip trailing whitespace, or to recognize MH template
separators ('--------'). For convenience (e.g. for code reading from
separators ('--------'). For convenience (e.g. for code reading from
sockets) a line consisting of
\
r
\n
also matches.
sockets) a line consisting of
\
\
r
\
\
n also matches.
"""
"""
return
line
in
_blanklines
return
line
in
_blanklines
...
...
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