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
c811328e
Kaydet (Commit)
c811328e
authored
Nis 03, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Escaped backslashes in docstrings.
üst
023de869
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
codecs.py
Lib/codecs.py
+1
-1
SearchEngine.py
Lib/idlelib/SearchEngine.py
+1
-1
textwrap.py
Lib/textwrap.py
+3
-3
No files found.
Lib/codecs.py
Dosyayı görüntüle @
c811328e
...
...
@@ -1057,7 +1057,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/idlelib/SearchEngine.py
Dosyayı görüntüle @
c811328e
...
...
@@ -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/textwrap.py
Dosyayı görüntüle @
c811328e
...
...
@@ -147,7 +147,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
:
...
...
@@ -193,7 +193,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.
...
...
@@ -379,7 +379,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