summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-12-21 16:26:31 (GMT)
committerGuido van Rossum <guido@python.org>1998-12-21 16:26:31 (GMT)
commitc6769c54f40a5cf6ed42ad7dcc7189d30ee8714e (patch)
tree5af01a0048bde1f79e6eb86a2e2a96f391f393bf /Lib
parent1f05708f69bb90d2892b4e5c9521b19c1574c6b1 (diff)
downloadcpython-c6769c54f40a5cf6ed42ad7dcc7189d30ee8714e.zip
cpython-c6769c54f40a5cf6ed42ad7dcc7189d30ee8714e.tar.gz
cpython-c6769c54f40a5cf6ed42ad7dcc7189d30ee8714e.tar.bz2
Typo discovered by Just.
Diffstat (limited to 'Lib')
-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()