]> granicus.if.org Git - python/commitdiff
Fix a regression from the 1.68->1.69 checkin:
authorWalter Dörwald <walter@livinglogic.de>
Mon, 3 Jun 2002 10:41:45 +0000 (10:41 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Mon, 3 Jun 2002 10:41:45 +0000 (10:41 +0000)
string.split(foo, bar) must be foo.split(bar) instead of bar.split(foo).

Lib/ftplib.py

index 2e5cb337568d4dbed8fe8b069f0405e14c0b3f3a..d67a0aa8cc13e3a18a257385daf094656a670116 100644 (file)
@@ -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]