Change the default encoding for ftplib.FTP to latin1 so that bytes can be in

the range of 255 instead of only 128.
This commit is contained in:
Brett Cannon 2007-10-08 19:48:15 +00:00
parent 9f2c39a775
commit 6733d701f1
1 changed files with 1 additions and 1 deletions

View File

@ -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