Skip to content

Commit a69093a

Browse files
committed
Underscore-prefix _ALT_NUMBER_FORMATS
1 parent 8b4aa9e commit a69093a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

python/buildmetadatafromxml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def emit_metadata_py(self, datadir, module_prefix):
504504
if self.alt_territory is not None:
505505
for country_code in sorted(self.alt_territory.keys()):
506506
print >> outfile, "from .alt_format_%s import PHONE_ALT_FORMAT_%s" % (country_code, country_code)
507-
print >> outfile, ("ALT_NUMBER_FORMATS = {%s}" %
507+
print >> outfile, ("_ALT_NUMBER_FORMATS = {%s}" %
508508
", ".join(["%s: PHONE_ALT_FORMAT_%s" % (cc, cc) for cc in sorted(self.alt_territory.keys())]))
509509
# Emit the mapping from country code to region code
510510
print >> outfile, _COUNTRY_CODE_TO_REGION_CODE_PROLOG

python/phonenumbers/data/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@
270270
from .alt_format_55 import PHONE_ALT_FORMAT_55
271271
from .alt_format_61 import PHONE_ALT_FORMAT_61
272272
from .alt_format_81 import PHONE_ALT_FORMAT_81
273-
ALT_NUMBER_FORMATS = {44: PHONE_ALT_FORMAT_44, 49: PHONE_ALT_FORMAT_49, 55: PHONE_ALT_FORMAT_55, 61: PHONE_ALT_FORMAT_61, 81: PHONE_ALT_FORMAT_81}
273+
_ALT_NUMBER_FORMATS = {44: PHONE_ALT_FORMAT_44, 49: PHONE_ALT_FORMAT_49, 55: PHONE_ALT_FORMAT_55, 61: PHONE_ALT_FORMAT_61, 81: PHONE_ALT_FORMAT_81}
274274

275275
# A mapping from a country code to the region codes which
276276
# denote the country/region represented by that country code.

0 commit comments

Comments
 (0)