summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoshe Zadka <moshez@math.huji.ac.il>2001-03-31 14:14:43 +0000
committerMoshe Zadka <moshez@math.huji.ac.il>2001-03-31 14:14:43 +0000
commita97ac3f309f39271cd90922ed5b8f0724a434d0c (patch)
tree94a1e899e7a9666427dac23da4b453f00807f91e
parentac0f549375b113ca1621dc87d22998e08385c1ff (diff)
downloadcpython-a97ac3f309f39271cd90922ed5b8f0724a434d0c.tar.gz
Treat \r as whitespace too, when removing trailing whitespace
-rwxr-xr-xLib/quopri.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/quopri.py b/Lib/quopri.py
index b449792e40..82f4727dd1 100755
--- a/Lib/quopri.py
+++ b/Lib/quopri.py
@@ -63,7 +63,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