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 9cb67dd..9dce22b 100644 --- a/Lib/ftplib.py +++ b/Lib/ftplib.py @@ -332,7 +332,7 @@ class FTP:              # 1xx or error messages for LIST), so we just discard              # this response.              if resp[0] == '2': -               resp = self.getresp() +                resp = self.getresp()              if resp[0] != '1':                  raise error_reply, resp          else: @@ -342,7 +342,7 @@ class FTP:              resp = self.sendcmd(cmd)              # See above.              if resp[0] == '2': -               resp = self.getresp() +                resp = self.getresp()              if resp[0] != '1':                  raise error_reply, resp              conn, sockaddr = sock.accept()  | 
