

def country_code_for_valid_region(region_code):
    'Returns the country calling code for a specific region.\n\n    For example, this would be 1 for the United States, and 64 for New\n    Zealand.  Assumes the region is already valid.\n\n    Arguments:\n    region_code -- The region that we want to get the country calling code for.\n\n    Returns the country calling code for the region denoted by region_code.\n    '
    metadata = PhoneMetadata.metadata_for_region(region_code.upper(), None)
    if (metadata is None):
        raise Exception(('Invalid region code %s' % metadata))
    return metadata.country_code

dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/phonenumberutil.py country_code_for_valid_region/VarMisuse@42/206 `region_code`->`metadata`