Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6733d70

Browse files
committed
Change the default encoding for ftplib.FTP to latin1 so that bytes can be in
the range of 255 instead of only 128.
1 parent 9f2c39a commit 6733d70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/ftplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class FTP:
103103
file = None
104104
welcome = None
105105
passiveserver = 1
106-
encoding = "ASCII"
106+
encoding = "latin1"
107107

108108
# Initialization method (called by class instantiation).
109109
# Initialize host to localhost, port to standard ftp port

0 commit comments

Comments
 (0)