Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/phonenumbers/carrierdata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/carrierdata/data0.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/carrierdata/data1.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/carrierdata/data2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Auto-generated file, do not edit by hand."""
# Copyright (C) 2010-2022 The Libphonenumber Authors
# Copyright (C) 2010-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data0.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data1.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data10.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data11.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data12.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data13.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data14.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data15.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data16.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data17.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data18.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data19.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data20.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data21.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data22.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data23.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data24.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data25.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data26.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data27.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data28.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data3.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data4.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data5.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data6.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data7.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data8.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/geodata/data9.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/shortdata/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Auto-generated file, do not edit by hand."""
# Copyright (C) 2010-2022 The Libphonenumber Authors
# Copyright (C) 2010-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/tzdata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/tzdata/data0.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
4 changes: 4 additions & 0 deletions python/tests/phonenumberutiltest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3216,6 +3216,8 @@ def testShortMetadataRegister(self):
'register': True,
'short_data': True})
self.assertIsNone(phonenumbers.example_number_for_type('XZ', PhoneNumberType.PERSONAL_NUMBER))
# Deregister "XZ" so no other tests are affected.
del PhoneMetadata._short_region_metadata["XZ"]

def testNonGeoMetadataRegister(self):
# Python version extra tests for non-geo metadata registration.
Expand All @@ -3239,6 +3241,8 @@ def testNonGeoMetadataRegister(self):
**{'country_code': 999,
'preferred_international_prefix': u('9999'),
'register': True})
# Deregister "001" / 999 afterwards so no other tests are affected.
del PhoneMetadata._country_code_metadata[999]

def testPickledException(self):
err = NumberParseException(NumberParseException.TOO_SHORT_AFTER_IDD, 'hello world')
Expand Down
2 changes: 1 addition & 1 deletion python/tests/testcarrierdata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from phonenumbers.util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/tests/testcarrierdata/data0.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from phonenumbers.util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/tests/testdata/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Auto-generated file, do not edit by hand."""
# Copyright (C) 2010-2022 The Libphonenumber Authors
# Copyright (C) 2010-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/tests/testgeodata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from phonenumbers.util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion python/tests/testgeodata/data0.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from phonenumbers.util import u

# Copyright (C) 2011-2022 The Libphonenumber Authors
# Copyright (C) 2011-2023 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Loading