[fix] default indices in strip_component

This commit is contained in:
Al
2015-09-04 12:29:47 -04:00
parent 64db63e3eb
commit 168b7f59da

View File

@@ -256,6 +256,7 @@ class AddressFormatter(object):
return text
def strip_component(self, value, tagged=False):
i = j = 0
if not tagged:
tokens = tokenize(value)
for i, (c, t) in enumerate(tokens):