summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-03-22 22:30:21 (GMT)
committerGuido van Rossum <guido@python.org>2001-03-22 22:30:21 (GMT)
commit14b90a498ff4c06c9879b9362542a263ae0b9b05 (patch)
tree91dbcf72411286b4958b9ccdf8168918edd7b686 /Lib
parent8652522442614cb926ef0ae9fef1d6d4fbb08c97 (diff)
downloadcpython-14b90a498ff4c06c9879b9362542a263ae0b9b05.zip
cpython-14b90a498ff4c06c9879b9362542a263ae0b9b05.tar.gz
cpython-14b90a498ff4c06c9879b9362542a263ae0b9b05.tar.bz2
Strip \r as trailing whitespace as part of soft line endings.
Inspired by SF patch #408597 (Walter Dörwald): quopri, soft line breaks and CRLF. (I changed (" ", "\t", "\r") into " \t\r".)
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/quopri.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/quopri.py b/Lib/quopri.py
index 5f5e80c..e7e4bec 100755
--- a/Lib/quopri.py
+++ b/Lib/quopri.py
@@ -65,7 +65,7 @@ def decode(input, output):
if n > 0 and line[n-1] == '\n':
partial = 0; n = n-1
# Strip trailing whitespace
- while n > 0 and line[n-1] in (' ', '\t'):
+ while n > 0 and line[n-1] in " \t\r":
n = n-1
else:
partial = 1