From d97b00b4c148350575f661da751fe522f1a67cc1 Mon Sep 17 00:00:00 2001 From: Al Date: Sun, 3 Jul 2016 23:38:15 -0400 Subject: [PATCH] [addresses] Removing temporary file list and allowing any file ending in .yaml in resources/addresses to be parsed/imported --- scripts/geodata/addresses/config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/geodata/addresses/config.py b/scripts/geodata/addresses/config.py index 44651d03..fa2964d2 100644 --- a/scripts/geodata/addresses/config.py +++ b/scripts/geodata/addresses/config.py @@ -26,9 +26,8 @@ class AddressConfig(object): self.cache = {} for filename in os.listdir(config_dir): - if filename not in ('en.yaml', 'es.yaml', 'ca.yaml', 'fr.yaml', 'de.yaml', 'nl.yaml', 'da.yaml', 'nb.yaml', 'sv.yaml', 'pt.yaml', 'pl.yaml', 'ru.yaml', 'cs.yaml', 'sk.yaml', 'it.yaml', 'et.yaml', 'fi.yaml', 'ro.yaml', 'hu.yaml'): + if not filename.endswith('.yaml'): continue - config = yaml.load(open(os.path.join(ADDRESS_CONFIG_DIR, filename))) countries = config.pop('countries', {})