[fix] rsplit

This commit is contained in:
Al
2015-09-26 21:07:54 -04:00
parent e255ae0e09
commit dac0440be8

View File

@@ -186,12 +186,12 @@ class AddressFormatter(object):
separator_tag = self.separator_tag
for i, t in enumerate(tokens):
t, c = t.split('/')
t, c = t.rsplit('/', 1)
if c != separator_tag:
break
for j, t in enumerate(reversed(tokens)):
t, c = t.split('/')
t, c = t.rsplit('/', 1)
if c != separator_tag:
break