mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class FTP:
|
||||||
file = None
|
file = None
|
||||||
welcome = None
|
welcome = None
|
||||||
passiveserver = 1
|
passiveserver = 1
|
||||||
encoding = "ASCII"
|
encoding = "latin1"
|
||||||
|
|
||||||
# Initialization method (called by class instantiation).
|
# Initialization method (called by class instantiation).
|
||||||
# Initialize host to localhost, port to standard ftp port
|
# Initialize host to localhost, port to standard ftp port
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue