summaryrefslogtreecommitdiff
path: root/babel/support.py
Commit message (Collapse)AuthorAgeFilesLines
* Improve type annotation for `babel.support.Translations.load` (#983)Aarni Koskela2023-03-021-7/+21
| | | | | | Fixes #982 Co-authored-by: Jonah Lawrence <jonah@freshidea.com>
* Update copyright year to 2023Aarni Koskela2023-02-281-1/+1
|
* Apply some simplification fixes courtesy of RuffAarni Koskela2023-01-251-4/+1
|
* Remove redundant tests for babel.support (#954)Aarni Koskela2023-01-201-0/+5
| | | The doctests test the exact same things.
* Adjust tests for CLDR 42Aarni Koskela2023-01-201-2/+2
| | | | | | | The space changes around English seem to be on purpose, see: * https://unicode-org.atlassian.net/browse/CLDR-14032 * https://github.com/unicode-org/cldr/commit/a83026ab8c8fa6ed88f1047c4d0c6089f88b7e5d
* Apply some small miscellaneous formatting fixesAarni Koskela2023-01-181-0/+1
|
* Apply ruff I category fixesAarni Koskela2023-01-181-6/+9
|
* Apply ruff F category fixesAarni Koskela2023-01-181-2/+3
|
* Apply ruff B category fixesAarni Koskela2023-01-181-2/+2
|
* Minor cleanups (#948)Aarni Koskela2023-01-181-1/+1
| | | | | * Add __all__s to be cleaner about re-exports * Move timezone_getter to conftest * Apply spelling corrections suggested by codespell
* Unify datetime imports (#945)Aarni Koskela2023-01-181-14/+19
| | | Co-authored-by: Jonah Lawrence <jonah@freshidea.com>
* Implement zoneinfo support and make pytz optional (#940)DS/Charlie2023-01-111-9/+12
|
* Add type annotations (#934)Jonah Lawrence2023-01-111-77/+124
| | | | | | | Refs e.g. https://github.com/python/typeshed/pull/9455 Co-authored-by: Spencer Brown <spencerb21@live.com> Co-authored-by: Aarni Koskela <akx@iki.fi>
* Replace %/.format/concatenation with f-strings where feasible (#927)Aarni Koskela2022-11-231-2/+2
| | | Original conversion suggestions via flynt, edited by hand.
* feat: Support for short compact currency formats (#926)Jonah Lawrence2022-11-041-1/+8
| | | | Co-authored-by: Jun Omae (大前 潤) <42682+jun66j5@users.noreply.github.com>
* feat: Add `Format.compact_decimal` utility (#921)Jonah Lawrence2022-11-021-1/+12
|
* Remove superfluous `__unicode__` declarationsLukas Juhrich2022-09-271-3/+0
| | | | | The `__unicode__` protocol is not used in python3, and furthermore the `unicode()` builtin does not exist anymore.
* Remove `__nonzero__` methods (#896)Nikita Sobolev2022-08-211-1/+1
|
* Fix up some Python2-isms using pyupgradeAarni Koskela2022-05-101-6/+5
|
* Merge pull request #835 from akx/gettext-deprecationsAarni Koskela2022-04-081-13/+17
|\ | | | | Gettext deprecation fixes (for Python 3.11 compatibility)
| * Don't assume `_output_charset` is a thing (it's not on Python 3.11)Aarni Koskela2022-01-281-13/+5
| | | | | | | | Fixes #819
| * Add deprecations to l*gettext variantsAarni Koskela2022-01-281-0/+12
| |
* | Don't use the deprecated format_number function internally or in testsAarni Koskela2022-02-041-2/+2
|/
* Update copyright year to 2022Aarni Koskela2022-01-251-1/+1
|
* Remove redundant _compat.pyHugo van Kemenade2021-09-141-19/+7
|
* Become 2.9.1Aarni Koskela2021-04-281-1/+1
| | | | | * Update copyright year * Update changelog
* Merge branch '2.8-maintenance' into masterAarni Koskela2020-11-111-1/+1
|\
| * Bump copyright year from 2019 to 2020Aarni Koskela2020-11-111-1/+1
| |
* | Correct default timedelta format to 'long'Aarni Koskela2020-10-021-1/+1
| | | | | | | | Augments 9327e0824a1bbed538e73d42b971988f8214b490
* | LazyProxy: Handle AttributeError in specified func (#724)Nikiforov Konstantin2020-09-301-2/+10
|/ | | | | Fixes #723 Co-authored-by: Aarni Koskela <akx@iki.fi>
* Bump copyright year from 2018 to 2019Aarni Koskela2019-05-271-1/+1
|
* Use https URLs throughout project where availableJon Dufresne2018-06-131-1/+1
| | | | Updated docs and code comments.
* Update copyright header years, and include the Babel teamAarni Koskela2018-02-021-1/+1
|
* Apply pre-commit fixes.Lukas Balaga2016-02-271-3/+3
|
* Flatten NullTranslations.files into a listAarni Koskela2015-12-291-1/+1
| | | | | | | | `filter` is special in Python 3, and latter usages would error out in strange ways. Fixes #92 (https://github.com/python-babel/babel/pull/92) Fixes #162 (https://github.com/python-babel/babel/pull/162)
* Test/CI: Make doctests run on both Py2 and Py3Aarni Koskela2015-12-211-2/+2
| | | | Fixes #293
* Add __copy__ and __deepcopy__ to LazyProxy.astaric2015-08-051-0/+17
| | | | | Python's copy.copy and copy.deepcopy do not call objects __init__, resulting in endless recursion.
* Some codestyle updates in babel.supportArmin Ronacher2013-07-251-31/+2
|
* License clarification and cleanupArmin Ronacher2013-07-241-17/+11
|
* fix babel.support for py3 strings/bytesAlex Morega2013-07-071-8/+8
|
* the python stdlib has no *pgettextAlex Morega2013-07-071-4/+0
|
* fix testsAlex Morega2013-07-071-0/+6
|
* More gettext fixesArmin Ronacher2013-07-061-3/+13
|
* Merge pull request #14 from mgax/pypyArmin Ronacher2013-07-061-1/+2
|\ | | | | Pypy
| * make sure we close the fileAlex Morega2013-07-051-1/+2
| |
* | Greatly improved timedelta formattingArmin Ronacher2013-07-051-3/+6
|/
* Removed __docformat__ markersArmin Ronacher2013-07-051-1/+1
|
* Removed trailing whitespaceArmin Ronacher2013-07-051-35/+35
|
* changes in CLDR dataAlex Morega2013-07-041-1/+1
|
* update Translations.load to use new parameter name ('fp' instead of ↵Felix Schwarz2012-08-221-1/+1
| | | | 'fileobj'), regression introduced in r653