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:
parent
9f2c39a775
commit
6733d701f1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue