[fix] default indices in strip_component
This commit is contained in:
@@ -256,6 +256,7 @@ class AddressFormatter(object):
|
|||||||
return text
|
return text
|
||||||
|
|
||||||
def strip_component(self, value, tagged=False):
|
def strip_component(self, value, tagged=False):
|
||||||
|
i = j = 0
|
||||||
if not tagged:
|
if not tagged:
|
||||||
tokens = tokenize(value)
|
tokens = tokenize(value)
|
||||||
for i, (c, t) in enumerate(tokens):
|
for i, (c, t) in enumerate(tokens):
|
||||||
|
|||||||
Reference in New Issue
Block a user