mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
#9911: doc copyedits.
This commit is contained in:
parent
af38dc5b0c
commit
6faee4e2ce
31 changed files with 38 additions and 38 deletions
|
|
@ -953,7 +953,7 @@ Is there an equivalent to Perl's chomp() for removing trailing newlines from str
|
|||
-------------------------------------------------------------------------------------
|
||||
|
||||
Starting with Python 2.2, you can use ``S.rstrip("\r\n")`` to remove all
|
||||
occurences of any line terminator from the end of the string ``S`` without
|
||||
occurrences of any line terminator from the end of the string ``S`` without
|
||||
removing other trailing whitespace. If the string ``S`` represents more than
|
||||
one line, with several empty lines at the end, the line terminators for all the
|
||||
blank lines will be removed::
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue