Mercurial > babel > mirror
comparison 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 |
comparison
equal
deleted
inserted
replaced
12:e6ba3e878b10 | 13:368650dc3423 |
---|---|
102 | 102 |
103 territory = None | 103 territory = None |
104 elem = tree.find('//identity/territory') | 104 elem = tree.find('//identity/territory') |
105 if elem is not None: | 105 if elem is not None: |
106 territory = elem.attrib['type'] | 106 territory = elem.attrib['type'] |
107 else: | |
108 territory = '001' # world | |
107 print>>sys.stderr, ' Territory: %r' % territory | 109 print>>sys.stderr, ' Territory: %r' % territory |
108 regions = territory_containment.get(territory, []) | 110 regions = territory_containment.get(territory, []) |
109 print>>sys.stderr, ' Regions: %r' % regions | 111 print>>sys.stderr, ' Regions: %r' % regions |
110 | 112 |
111 # <localeDisplayNames> | 113 # <localeDisplayNames> |