summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2002-06-03 10:41:45 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2002-06-03 10:41:45 (GMT)
commita401ae4010eeb385a0775c505637bbc332bc184c (patch)
tree3110d26f822759937480c0fc1417e04ddf0ec91a /Lib
parentc5000dfc4098f8547461e790a91536a923124261 (diff)
downloadcpython-a401ae4010eeb385a0775c505637bbc332bc184c.zip
cpython-a401ae4010eeb385a0775c505637bbc332bc184c.tar.gz
cpython-a401ae4010eeb385a0775c505637bbc332bc184c.tar.bz2
Fix a regression from the 1.68->1.69 checkin:
string.split(foo, bar) must be foo.split(bar) instead of bar.split(foo).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ftplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ftplib.py b/Lib/ftplib.py
index 2e5cb33..d67a0aa 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]