diff options
author | David Drysdale <drysdale@google.com> | 2016-11-15 12:24:36 +0000 |
---|---|---|
committer | David Drysdale <drysdale@google.com> | 2016-11-15 12:24:36 +0000 |
commit | 7be5de284d9b6fcb36b5696fe1ab3ef1036d407c (patch) | |
tree | 2865fe24155c56c909a5c88665e9bc136e69e746 /tools | |
parent | ea74992eae1953262370bff5dc7bd6b9116732d0 (diff) |
buildmetadata: drop unused fill_na param
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/python/buildmetadatafromxml.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/python/buildmetadatafromxml.py b/tools/python/buildmetadatafromxml.py index 5ce8a981..25764e47 100755 --- a/tools/python/buildmetadatafromxml.py +++ b/tools/python/buildmetadatafromxml.py @@ -311,7 +311,7 @@ class XNumberFormat(UnicodeMixin): class XPhoneNumberDesc(UnicodeMixin): """Parse PhoneNumberDesc object from XML element""" - def __init__(self, xterritory, tag, template=None, fill_na=True, general_desc=False): + def __init__(self, xterritory, tag, template=None, general_desc=False): id = xterritory.attrib['id'] xtag = _get_unique_child(xterritory, tag) self.xtag = xtag @@ -439,7 +439,7 @@ class XTerritory(UnicodeMixin): # However the general_desc is first and special; it has form: # (nationalNumberPattern, possibleNumberPattern) # and it will be used to fill out missing fields in many of the other PhoneNumberDesc elements. - self.o.general_desc = XPhoneNumberDesc(xterritory, 'generalDesc', fill_na=False, general_desc=True) + self.o.general_desc = XPhoneNumberDesc(xterritory, 'generalDesc', general_desc=True) # areaCodeOptional is in the XML but not used in the code. self.o.area_code_optional = XPhoneNumberDesc(xterritory, 'areaCodeOptional', template=self.o.general_desc.o) @@ -447,8 +447,8 @@ class XTerritory(UnicodeMixin): self.o.premium_rate = XPhoneNumberDesc(xterritory, 'premiumRate', template=self.o.general_desc.o) if not short_data: # Mobile and fixed-line descriptions do not inherit anything from the general_desc - self.o.fixed_line = XPhoneNumberDesc(xterritory, 'fixedLine', fill_na=False) - self.o.mobile = XPhoneNumberDesc(xterritory, 'mobile', fill_na=False) + self.o.fixed_line = XPhoneNumberDesc(xterritory, 'fixedLine') + self.o.mobile = XPhoneNumberDesc(xterritory, 'mobile') self.o.pager = XPhoneNumberDesc(xterritory, 'pager', template=self.o.general_desc.o) self.o.shared_cost = XPhoneNumberDesc(xterritory, 'sharedCost', template=self.o.general_desc.o) |