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
50ef0f41
Kaydet (Commit)
50ef0f41
authored
Nis 03, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Escaped backslashes in docstrings.
üst
32ed7509
9f8a8910
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
13 deletions
+13
-13
base64.py
Lib/base64.py
+2
-2
codecs.py
Lib/codecs.py
+1
-1
_encoded_words.py
Lib/email/_encoded_words.py
+1
-1
SearchEngine.py
Lib/idlelib/SearchEngine.py
+1
-1
smtplib.py
Lib/smtplib.py
+2
-2
__init__.py
Lib/test/support/__init__.py
+3
-3
textwrap.py
Lib/textwrap.py
+3
-3
No files found.
Lib/base64.py
Dosyayı görüntüle @
50ef0f41
...
...
@@ -324,7 +324,7 @@ def a85encode(b, *, foldspaces=False, wrapcol=0, pad=False, adobe=False):
instead of 4 consecutive spaces (ASCII 0x20) as supported by 'btoa'. This
feature is not supported by the "standard" Adobe encoding.
wrapcol controls whether the output should have newline ('
\n
') characters
wrapcol controls whether the output should have newline ('
\
\
n') characters
added to it. If this is non-zero, each output line will be at most this
many characters long.
...
...
@@ -434,7 +434,7 @@ _b85dec = None
def
b85encode
(
b
,
pad
=
False
):
"""Encode an ASCII-encoded byte array in base85 format.
If pad is true, the input is padded with "
\0
" so its length is a multiple of
If pad is true, the input is padded with "
\
\
0" so its length is a multiple of
4 characters before encoding.
"""
global
_b85chars
,
_b85chars2
...
...
Lib/codecs.py
Dosyayı görüntüle @
50ef0f41
...
...
@@ -1065,7 +1065,7 @@ def make_encoding_map(decoding_map):
during translation.
One example where this happens is cp875.py which decodes
multiple character to
\u001a
.
multiple character to
\
\
u001a.
"""
m
=
{}
...
...
Lib/email/_encoded_words.py
Dosyayı görüntüle @
50ef0f41
...
...
@@ -152,7 +152,7 @@ def decode(ew):
then from the resulting bytes into unicode using the specified charset. If
the cte-decoded string does not successfully decode using the specified
character set, a defect is added to the defects list and the unknown octets
are replaced by the unicode 'unknown' character
\uFDFF
.
are replaced by the unicode 'unknown' character
\
\
uFDFF.
The specified charset and language are returned. The default for language,
which is rarely if ever encountered, is the empty string.
...
...
Lib/idlelib/SearchEngine.py
Dosyayı görüntüle @
50ef0f41
...
...
@@ -191,7 +191,7 @@ def search_reverse(prog, chars, col):
This is done by searching forwards until there is no match.
Prog: compiled re object with a search method returning a match.
Chars: line of text, without
\n
.
Chars: line of text, without
\
\
n.
Col: stop index for the search; the limit for match.end().
'''
m
=
prog
.
search
(
chars
)
...
...
Lib/smtplib.py
Dosyayı görüntüle @
50ef0f41
...
...
@@ -518,8 +518,8 @@ class SMTP:
Raises SMTPDataError if there is an unexpected reply to the
DATA command; the return value from this method is the final
response code received when the all data is sent. If msg
is a string, lone '
\
r
' and '
\n
' characters are converted to
'
\
r
\n
' characters. If msg is bytes, it is transmitted as is.
is a string, lone '
\
\
r' and '
\
\
n' characters are converted to
'
\
\
r
\
\
n' characters. If msg is bytes, it is transmitted as is.
"""
self
.
putcmd
(
"data"
)
(
code
,
repl
)
=
self
.
getreply
()
...
...
Lib/test/support/__init__.py
Dosyayı görüntüle @
50ef0f41
...
...
@@ -1380,7 +1380,7 @@ def captured_stdout():
with captured_stdout() as stdout:
print("hello")
self.assertEqual(stdout.getvalue(), "hello
\n
")
self.assertEqual(stdout.getvalue(), "hello
\
\
n")
"""
return
captured_output
(
"stdout"
)
...
...
@@ -1389,7 +1389,7 @@ def captured_stderr():
with captured_stderr() as stderr:
print("hello", file=sys.stderr)
self.assertEqual(stderr.getvalue(), "hello
\n
")
self.assertEqual(stderr.getvalue(), "hello
\
\
n")
"""
return
captured_output
(
"stderr"
)
...
...
@@ -1397,7 +1397,7 @@ def captured_stdin():
"""Capture the input to sys.stdin:
with captured_stdin() as stdin:
stdin.write('hello
\n
')
stdin.write('hello
\
\
n')
stdin.seek(0)
# call test code that consumes from sys.stdin
captured = input()
...
...
Lib/textwrap.py
Dosyayı görüntüle @
50ef0f41
...
...
@@ -148,7 +148,7 @@ class TextWrapper:
"""_munge_whitespace(text : string) -> string
Munge whitespace in text: expand tabs and convert all other
whitespace characters to spaces. Eg. " foo
\
t
bar
\n
\n
baz"
whitespace characters to spaces. Eg. " foo
\
\
tbar
\\
n
\
\
nbaz"
becomes " foo bar baz".
"""
if
self
.
expand_tabs
:
...
...
@@ -184,7 +184,7 @@ class TextWrapper:
"""_fix_sentence_endings(chunks : [string])
Correct for sentence endings buried in 'chunks'. Eg. when the
original text contains "... foo.
\n
Bar ...", munge_whitespace()
original text contains "... foo.
\
\
nBar ...", munge_whitespace()
and split() will convert that to [..., "foo.", " ", "Bar", ...]
which has one too few spaces; this method simply changes the one
space to two.
...
...
@@ -420,7 +420,7 @@ def dedent(text):
in indented form.
Note that tabs and spaces are both treated as whitespace, but they
are not equal: the lines " hello" and "
\t
hello" are
are not equal: the lines " hello" and "
\
\
thello" are
considered to have no common leading whitespace. (This behaviour is
new in Python 2.5; older versions of this module incorrectly
expanded tabs before searching for common leading whitespace.)
...
...
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