Convert ugettext to gettext.

Review Request #11941 — Created Jan. 20, 2022 and submitted — Latest diff uploaded

Information

Djblets
release-3.x

Reviewers

Now that Django is Python 3 only, the regular gettext methods always
return unicode str types. The aliases prefixed with u were
deprecated and will be removed in Django 4.x, so we should switch over
now to silence a ton of warnings.

Ran unit tests.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Convert ugettext to gettext.
Now that Django is Python 3 only, the regular `gettext` methods always return unicode `str` types. The aliases prefixed with `u` were deprecated and will be removed in Django 4.x, so we should switch over now to silence a ton of warnings. Testing Done: Ran unit tests.
caaa698b3ce22b1b8a82f3a827d3ac7718d64af8 David Trowbridge
This diff has been split across 2 pages: 1 2 >
djblets/auth/forms.py
djblets/auth/util.py
djblets/avatars/forms.py
djblets/avatars/registry.py
djblets/avatars/services/fallback.py
djblets/avatars/services/file_upload.py
djblets/avatars/services/url.py
djblets/conditions/choices.py
djblets/conditions/conditions.py
djblets/conditions/operators.py
djblets/conditions/values.py
djblets/configforms/forms.py
djblets/configforms/registry.py
djblets/datagrid/grids.py
djblets/db/fields/base64_field.py
djblets/db/fields/json_field.py
djblets/extensions/errors.py
djblets/extensions/extension.py
djblets/extensions/manager.py
djblets/extensions/resources.py
This diff has been split across 2 pages: 1 2 >
Loading...