Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c811328e
Commit
c811328e
authored
Apr 03, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Escaped backslashes in docstrings.
parent
023de869
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Lib/codecs.py
Lib/codecs.py
+1
-1
Lib/idlelib/SearchEngine.py
Lib/idlelib/SearchEngine.py
+1
-1
Lib/textwrap.py
Lib/textwrap.py
+3
-3
No files found.
Lib/codecs.py
View file @
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
View file @
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
View file @
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
\
tbar
\
n
\
nbaz
"
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
.
\
nBar
...
", 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 "
\
thello
" 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