[Python-3000-checkins] r58378 - python/branches/py3k/Lib/ftplib.py

brett.cannon python-3000-checkins at python.org
Mon Oct 8 21:48:15 CEST 2007


Author: brett.cannon
Date: Mon Oct  8 21:48:15 2007
New Revision: 58378

Modified:
   python/branches/py3k/Lib/ftplib.py
Log:
Change the default encoding for ftplib.FTP to latin1 so that bytes can be in
the range of 255 instead of only 128.


Modified: python/branches/py3k/Lib/ftplib.py
==============================================================================
--- python/branches/py3k/Lib/ftplib.py	(original)
+++ python/branches/py3k/Lib/ftplib.py	Mon Oct  8 21:48:15 2007
@@ -103,7 +103,7 @@
     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


More information about the Python-3000-checkins mailing list