]> granicus.if.org Git - python/commitdiff
Change the default encoding for ftplib.FTP to latin1 so that bytes can be in
authorBrett Cannon <bcannon@gmail.com>
Mon, 8 Oct 2007 19:48:15 +0000 (19:48 +0000)
committerBrett Cannon <bcannon@gmail.com>
Mon, 8 Oct 2007 19:48:15 +0000 (19:48 +0000)
the range of 255 instead of only 128.

Lib/ftplib.py

index cfc51ba26f85656e54641bafbac9dafab6dd31d3..2df4123a5372d6c9988a4ddb4ae0df50af0ec2a1 100644 (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