From: Walter Dörwald Date: Mon, 3 Jun 2002 10:41:45 +0000 (+0000) Subject: Fix a regression from the 1.68->1.69 checkin: X-Git-Tag: v2.3c1~5502 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a401ae4010eeb385a0775c505637bbc332bc184c;p=thirdparty%2FPython%2Fcpython.git Fix a regression from the 1.68->1.69 checkin: string.split(foo, bar) must be foo.split(bar) instead of bar.split(foo). --- diff --git a/Lib/ftplib.py b/Lib/ftplib.py index 2e5cb337568d..d67a0aa8cc13 100644 --- a/Lib/ftplib.py +++ b/Lib/ftplib.py @@ -591,7 +591,7 @@ def parse229(resp, peer): raise error_proto, resp # should contain '(|||port|)' if resp[left + 1] <> resp[right - 1]: raise error_proto, resp - parts = resp[left+1].split(resp[left + 1:right]) + parts = resp[left + 1:right].split(resp[left+1]) if len(parts) <> 5: raise error_proto, resp host = peer[0]