Skip to content

Commit

Permalink
Add Babel 2.14 support
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Dec 21, 2023
1 parent 9e79a33 commit b188990
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1.9.1 - December 21, 2023
-------------------------

* Add Babel 2.14 support.

1.9.0 - October 17, 2023
------------------------

Expand Down
7 changes: 5 additions & 2 deletions agate/data_types/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ def __init__(self, locale='en_US', group_symbol=None, decimal_symbol=None,
with warnings.catch_warnings():
warnings.simplefilter("ignore")

self.group_symbol = group_symbol or self.locale.number_symbols.get('group', ',')
self.decimal_symbol = decimal_symbol or self.locale.number_symbols.get('decimal', '.')
# Babel 2.14 support.
# https://babel.pocoo.org/en/latest/changelog.html#possibly-backwards-incompatible-changes
number_symbols = self.locale.number_symbols.get('latn', self.locale.number_symbols)
self.group_symbol = group_symbol or number_symbols.get('group', ',')
self.decimal_symbol = decimal_symbol or number_symbols.get('decimal', '.')

def cast(self, d):
"""
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

project = 'agate'
copyright = '2017, Christopher Groskopf'
version = '1.9.0'
version = '1.9.1'
release = version

# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='agate',
version='1.9.0',
version='1.9.1',
description='A data analysis library that is optimized for humans instead of machines.',
long_description=long_description,
long_description_content_type='text/x-rst',
Expand Down

0 comments on commit b188990

Please sign in to comment.