From 09b3aeb7d9bc7d791c3a93a3f96127b84c53a06b Mon Sep 17 00:00:00 2001 From: Al Date: Wed, 11 Jan 2017 16:50:54 -0500 Subject: [PATCH] [fix] component --- scripts/geodata/addresses/components.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/geodata/addresses/components.py b/scripts/geodata/addresses/components.py index 4eb0576a..ea9004ff 100644 --- a/scripts/geodata/addresses/components.py +++ b/scripts/geodata/addresses/components.py @@ -483,7 +483,7 @@ class AddressComponents(object): total_tokens += 1 if self.parens_regex.search(name): - name = parens_regex.sub(six.u(''), name).strip() + name = self.parens_regex.sub(six.u(''), name).strip() # If the name contains a comma, stop and only use the phrase before the comma if ',' in name: