Convert ugettext to gettext.

Review Request #12026 — Created Feb. 2, 2022 and submitted — Latest diff uploaded

Information

Review Board
master

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

This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.

orig
1
2

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.
5d7cffb174f85324d432594d47f8ae81c9fadc0c David Trowbridge
This diff has been split across 8 pages: < 1 2 3 4 5 6 7 8
reviewboard/scmtools/forms.py
reviewboard/scmtools/git.py
reviewboard/scmtools/models.py
reviewboard/scmtools/perforce.py
reviewboard/scmtools/plastic.py
reviewboard/scmtools/management/commands/registerscmtools.py
reviewboard/scmtools/svn/__init__.py
reviewboard/scmtools/svn/base.py
reviewboard/scmtools/svn/pysvn.py
reviewboard/scmtools/svn/subvertpy.py
reviewboard/search/forms.py
reviewboard/search/search_backends/base.py
reviewboard/search/search_backends/elasticsearch.py
reviewboard/search/search_backends/whoosh.py
reviewboard/site/mixins.py
reviewboard/site/models.py
reviewboard/site/validation.py
reviewboard/ssh/client.py
reviewboard/ssh/errors.py
reviewboard/ssh/storage.py
reviewboard/static/rb/images/icons.afdesign
reviewboard/webapi/base.py
reviewboard/webapi/models.py
reviewboard/webapi/resources/api_token.py
reviewboard/webapi/resources/oauth_app.py
reviewboard/webapi/resources/oauth_token.py
reviewboard/webapi/resources/review_request_last_update.py
This diff has been split across 8 pages: < 1 2 3 4 5 6 7 8
Loading...