@@ -213,34 +213,34 @@ class PhoneMetadata(UnicodeMixin, ImmutableMixin):
213213 # The corresponding value of the map is either:
214214 # - a function which loads the region's metadata
215215 # - None, to indicate that the metadata is already loaded
216- region_available = {} # ISO 3166-1 alpha 2 => function or None
216+ _region_available = {} # ISO 3166-1 alpha 2 => function or None
217217 # Likewise for non-geo country calling codes
218- country_code_available = {} # country calling code (as int) => function or None
218+ _country_code_available = {} # country calling code (as int) => function or None
219219
220- region_metadata = {} # ISO 3166-1 alpha 2 => PhoneMetadata
220+ _region_metadata = {} # ISO 3166-1 alpha 2 => PhoneMetadata
221221 # A mapping from a country calling code for a non-geographical entity to
222222 # the PhoneMetadata for that country calling code. Examples of the country
223223 # calling codes include 800 (International Toll Free Service) and 808
224224 # (International Shared Cost Service).
225- country_code_metadata = {} # country calling code (as int) => PhoneMetadata
225+ _country_code_metadata = {} # country calling code (as int) => PhoneMetadata
226226
227227 @classmethod
228228 def metadata_for_region (kls , region_code , default = None ):
229- loader = kls .region_available .get (region_code , None )
229+ loader = kls ._region_available .get (region_code , None )
230230 if loader is not None :
231231 # Region metadata is available but has not yet been loaded. Do so now.
232- kls .region_available [region_code ] = None
232+ kls ._region_available [region_code ] = None
233233 loader ()
234- return kls .region_metadata .get (region_code , default )
234+ return kls ._region_metadata .get (region_code , default )
235235
236236 @classmethod
237237 def metadata_for_nongeo_region (kls , country_code , default = None ):
238- loader = kls .country_code_available .get (country_code , None )
238+ loader = kls ._country_code_available .get (country_code , None )
239239 if loader is not None :
240240 # Region metadata is available but has not yet been loaded. Do so now.
241- kls .country_code_available [country_code ] = None
241+ kls ._country_code_available [country_code ] = None
242242 loader ()
243- return kls .country_code_metadata .get (country_code , default )
243+ return kls ._country_code_metadata .get (country_code , default )
244244
245245 @classmethod
246246 def metadata_for_region_or_calling_code (kls , country_calling_code , region_code ):
@@ -251,11 +251,11 @@ def metadata_for_region_or_calling_code(kls, country_calling_code, region_code):
251251
252252 @classmethod
253253 def register_region_loader (kls , region_code , loader ):
254- kls .region_available [region_code ] = loader
254+ kls ._region_available [region_code ] = loader
255255
256256 @classmethod
257257 def register_nongeo_region_loader (kls , country_code , loader ):
258- kls .country_code_available [country_code ] = loader
258+ kls ._country_code_available [country_code ] = loader
259259
260260 @mutating_method
261261 def __init__ (self ,
@@ -449,10 +449,10 @@ def __init__(self,
449449 if register :
450450 # Register this instance with the relevant class-wide map
451451 if self .id == REGION_CODE_FOR_NON_GEO_ENTITY :
452- kls_map = PhoneMetadata .country_code_metadata
452+ kls_map = PhoneMetadata ._country_code_metadata
453453 id = self .country_code
454454 else :
455- kls_map = PhoneMetadata .region_metadata
455+ kls_map = PhoneMetadata ._region_metadata
456456 id = self .id
457457 if id in kls_map :
458458 other = kls_map [id ]
0 commit comments