From 14b90a498ff4c06c9879b9362542a263ae0b9b05 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 22 Mar 2001 22:30:21 +0000 Subject: Strip \r as trailing whitespace as part of soft line endings. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Inspired by SF patch #408597 (Walter Dörwald): quopri, soft line breaks and CRLF. (I changed (" ", "\t", "\r") into " \t\r".) --- Lib/quopri.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/quopri.py') diff --git a/Lib/quopri.py b/Lib/quopri.py index 5f5e80c6db..e7e4beccda 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 -- cgit v1.2.1