diff options
author | Moshe Zadka <moshez@math.huji.ac.il> | 2001-03-31 14:14:43 +0000 |
---|---|---|
committer | Moshe Zadka <moshez@math.huji.ac.il> | 2001-03-31 14:14:43 +0000 |
commit | a97ac3f309f39271cd90922ed5b8f0724a434d0c (patch) | |
tree | 94a1e899e7a9666427dac23da4b453f00807f91e | |
parent | ac0f549375b113ca1621dc87d22998e08385c1ff (diff) | |
download | cpython-a97ac3f309f39271cd90922ed5b8f0724a434d0c.tar.gz |
Treat \r as whitespace too, when removing trailing whitespace
-rwxr-xr-x | Lib/quopri.py | 2 |
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 |