From ba894573e479098fdbfb7b8addb827e1f92f3ad2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 1 Mar 2014 12:57:48 +0530 Subject: [PATCH] ... --- setup/translations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/translations.py b/setup/translations.py index 8708b8e2b4..0be67bb2ee 100644 --- a/setup/translations.py +++ b/setup/translations.py @@ -406,7 +406,7 @@ class ISO3166(ISO639): # {{{ 'iso3166.pickle') def run(self, opts): - src = self.j(self.d(self.SRC), 'setup', 'iso_639_3.xml') + src = self.j(self.d(self.SRC), 'setup', 'iso3166.xml') if not os.path.exists(src): raise Exception(src + ' does not exist') dest = self.DEST @@ -423,7 +423,7 @@ class ISO3166(ISO639): # {{{ three_map = {} name_map = {} for x in root.xpath('//iso_3166_entry'): - two = x.get('alpha_2_code', None) + two = x.get('alpha_2_code') three = x.get('alpha_3_code') codes.add(two) name_map[two] = x.get('name')