E5Network/E5Ftp.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 2911
ce77f0b1ee67
--- a/E5Network/E5Ftp.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/E5Network/E5Ftp.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,8 @@
 Module implementing an extension to the Python FTP class to support FTP proxies.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+
 import ftplib
 from socket import _GLOBAL_DEFAULT_TIMEOUT
 
@@ -150,9 +152,9 @@
                 raise E5FtpProxyError(
                     "990 Proxy usage requested, but no proxy host given.")
             
-            return super().connect(self.__proxyHost, self.__proxyPort, self.__timeout)
+            return super(E5Ftp, self).connect(self.__proxyHost, self.__proxyPort, self.__timeout)
         else:
-            return super().connect(self.__host, self.__port, self.__timeout)
+            return super(E5Ftp, self).connect(self.__host, self.__port, self.__timeout)
     
     def login(self, user="", password="", acct=""):
         """

eric ide

mercurial