From c464a74a36f2d4d688907954f3fe5c7c9ff3d22d Mon Sep 17 00:00:00 2001 From: David Drysdale Date: Tue, 18 Apr 2023 11:36:57 +0100 Subject: [PATCH] Fix up doc comments --- python/phonenumbers/asyoutypeformatter.py | 2 +- python/phonenumbers/phonenumberutil.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/python/phonenumbers/asyoutypeformatter.py b/python/phonenumbers/asyoutypeformatter.py index 87eee02b3..3fd426769 100644 --- a/python/phonenumbers/asyoutypeformatter.py +++ b/python/phonenumbers/asyoutypeformatter.py @@ -89,7 +89,7 @@ def __init__(self, region_code): Arguments: region_code -- The region where the phone number is being entered - Return an AsYouTypeFormatter} object, which could be used to format + Return an AsYouTypeFormatter object, which could be used to format phone numbers in the specific region "as you type" """ self._clear() diff --git a/python/phonenumbers/phonenumberutil.py b/python/phonenumbers/phonenumberutil.py index b9f5a946a..9964016ca 100644 --- a/python/phonenumbers/phonenumberutil.py +++ b/python/phonenumbers/phonenumberutil.py @@ -1460,8 +1460,8 @@ def format_out_of_country_calling_number(numobj, region_calling_from): def format_in_original_format(numobj, region_calling_from): """Formats a phone number using the original phone number format (e.g. INTERNATIONAL or NATIONAL) that the number is parsed from, provided - that the number has been parsed with parse_and_keep_raw_input. Otherwise the - number will be formatted in NATIONAL format. + that the number has been parsed with parse(.., keep_raw_input=True). + Otherwise the number will be formatted in NATIONAL format. The original format is embedded in the country_code_source field of the PhoneNumber object passed in, which is only set when parsing keeps the raw