diff options
Diffstat (limited to 'Lib/ftplib.py')
| -rw-r--r-- | Lib/ftplib.py | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/ftplib.py b/Lib/ftplib.py index 012671b..f9b6396 100644 --- a/Lib/ftplib.py +++ b/Lib/ftplib.py @@ -84,7 +84,7 @@ class FTP:      meaning that no timeout will be set on any ftp socket(s)      If a timeout is passed, then this is now the default timeout for all ftp      socket operations for this instance. -     +      Then use self.connect() with optional host and port argument.      To download a file, use ftp.retrlines('RETR ' + filename), @@ -112,7 +112,7 @@ class FTP:          self.timeout = timeout          if host:              self.connect(host) -            if user:  +            if user:                  self.login(user, passwd, acct)      def connect(self, host='', port=0, timeout=None):  | 
