From c6769c54f40a5cf6ed42ad7dcc7189d30ee8714e Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 21 Dec 1998 16:26:31 +0000 Subject: [PATCH] Typo discovered by Just. --- Lib/ftplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ftplib.py b/Lib/ftplib.py index e18f6841858..ac33a127a89 100644 --- a/Lib/ftplib.py +++ b/Lib/ftplib.py @@ -351,7 +351,7 @@ class FTP: break if line[-2:] == CRLF: line = line[:-2] - elif line[:-1] == '\n': + elif line[-1:] == '\n': line = line[:-1] callback(line) fp.close()