summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/ftplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ftplib.py b/Lib/ftplib.py
index e18f684..ac33a12 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()