From: Brett Cannon Date: Mon, 8 Oct 2007 19:48:15 +0000 (+0000) Subject: Change the default encoding for ftplib.FTP to latin1 so that bytes can be in X-Git-Tag: v3.0a2~349 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6733d701f1465cad4f5da4891f786a3716553d58;p=thirdparty%2FPython%2Fcpython.git Change the default encoding for ftplib.FTP to latin1 so that bytes can be in the range of 255 instead of only 128. --- diff --git a/Lib/ftplib.py b/Lib/ftplib.py index cfc51ba26f85..2df4123a5372 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