diff --git a/babel/numbers.py b/babel/numbers.py index f58d467dc..86e18394f 100644 --- a/babel/numbers.py +++ b/babel/numbers.py @@ -1029,15 +1029,14 @@ def parse_number( :raise `UnsupportedNumberingSystemError`: if the numbering system is not supported by the locale. """ try: - # Get the group and decimal symbols from the locale + # Get the group symbol from the locale group_symbol = get_group_symbol(locale, numbering_system=numbering_system) - decimal_symbol = Locale.parse(locale).number_symbols.get('decimal', '.') # Replace non-breakable spaces with the group symbol and remove other spaces cleaned_string = string.replace('\xa0', group_symbol).replace(' ', '') # Remove group symbols and replace the decimal symbol with a dot - cleaned_string = cleaned_string.replace(group_symbol, '').replace(decimal_symbol, '.') + cleaned_string = cleaned_string.replace(group_symbol, '').replace('.', '') return int(cleaned_string) except ValueError as ve: