summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-10-08 19:48:15 (GMT)
committerBrett Cannon <bcannon@gmail.com>2007-10-08 19:48:15 (GMT)
commit6733d701f1465cad4f5da4891f786a3716553d58 (patch)
treeef93de90b02d7bfe954def4b30d01025f68693ad
parent9f2c39a7751b648b982373cb097371d69762beff (diff)
downloadcpython-6733d701f1465cad4f5da4891f786a3716553d58.zip
cpython-6733d701f1465cad4f5da4891f786a3716553d58.tar.gz
cpython-6733d701f1465cad4f5da4891f786a3716553d58.tar.bz2
Change the default encoding for ftplib.FTP to latin1 so that bytes can be in
the range of 255 instead of only 128.
-rw-r--r--Lib/ftplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ftplib.py b/Lib/ftplib.py
index cfc51ba..2df4123 100644
--- a/Lib/ftplib.py
+++ b/Lib/ftplib.py
@@ -103,7 +103,7 @@ class FTP:
file = None
welcome = None
passiveserver = 1
- encoding = "ASCII"
+ encoding = "latin1"
# Initialization method (called by class instantiation).
# Initialize host to localhost, port to standard ftp port