-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make functions private and deprecate public aliases in i18n module
Prior to this change, the `Unit` enum and the `abs_timedelta` and `date_and_delta` functions were listed as public functions in the documentation but were not available from the root package: >>> import humanize >>> humanize.gettext Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'humanize' has no attribute 'gettext' >>> humanize.ngettext Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'humanize' has no attribute 'ngettext' This change makes these members private. In order to preserve backwards compatibility after this change, we provide aliases for these members which emit deprecation warnings.
- Loading branch information
Showing
3 changed files
with
153 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters