We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
GitHub fields:
assignee = None closed_at = <Date 2009-04-05.10:48:56.979> created_at = <Date 2007-05-26.18:39:50.000> labels = ['type-bug', 'library'] title = 'ftplib.py: IndexError in voidresp occasionally' updated_at = <Date 2009-04-05.10:48:56.977> user = 'https://bugs.python.org/kxroberto'
bugs.python.org fields:
activity = <Date 2009-04-05.10:48:56.977> actor = 'georg.brandl' assignee = 'none' closed = True closed_date = <Date 2009-04-05.10:48:56.979> closer = 'georg.brandl' components = ['Library (Lib)'] creation = <Date 2007-05-26.18:39:50.000> creator = 'kxroberto' dependencies = [] files = [] hgrepos = [] issue_num = 1726172 keywords = ['patch'] message_count = 2.0 messages = ['52671', '85477'] nosy_count = 3.0 nosy_names = ['georg.brandl', 'kxroberto', 'giampaolo.rodola'] pr_nums = [] priority = 'normal' resolution = 'fixed' stage = 'test needed' status = 'closed' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue1726172' versions = ['Python 2.6']
The text was updated successfully, but these errors were encountered:
A 1-char manual patch (still applies from 2.3 up to latest python trunk):
C:\Python23\Lib>diff -u org ftplib.py --- org/ftplib.py 2002-06-03 11:41:46.000000000 +0200 +++ ftplib.py 2007-05-26 20:33:58.086219200 +0200 @@ -219,7 +219,7 @@ def voidresp(self): """Expect a response beginning with '2'.""" resp = self.getresp() - if resp[0] != '2': + if resp[:1] != '2': raise error_reply, resp return resp
-- it solves a rare: ... File "ftplib.pyo", line 386, in retrbinary File "ftplib.pyo", line 222, in voidresp IndexError: string index out of range
Robert
Sorry, something went wrong.
Fixed in r71217. Thanks!
No branches or pull requests
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: