From: Moshe Zadka Date: Sat, 31 Mar 2001 14:14:43 +0000 (+0000) Subject: Treat \r as whitespace too, when removing trailing whitespace X-Git-Tag: v2.0.1c1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea96661b1afa0f422e37cba24f1df9fddb776e87;p=thirdparty%2FPython%2Fcpython.git Treat \r as whitespace too, when removing trailing whitespace --- diff --git a/Lib/quopri.py b/Lib/quopri.py index b449792e402a..82f4727dd127 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