diff scripts/import_cldr.py @ 13:368650dc3423 trunk

Extended and documented `LazyProxy`.
author cmlenz
date Thu, 31 May 2007 10:27:47 +0000
parents 9ed6cf5975a1
children 244a74232f5e
line wrap: on
line diff
--- a/scripts/import_cldr.py
+++ b/scripts/import_cldr.py
@@ -104,6 +104,8 @@
         elem = tree.find('//identity/territory')
         if elem is not None:
             territory = elem.attrib['type']
+        else:
+            territory = '001' # world
         print>>sys.stderr, '  Territory: %r' % territory
         regions = territory_containment.get(territory, [])
         print>>sys.stderr, '  Regions:    %r' % regions
Copyright (C) 2012-2017 Edgewall Software