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 2 (Latest)

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.
fe2dfdb587abffd4acdb816d971fbf49b918561a David Trowbridge
This diff has been split across 8 pages: 1 2 3 4 5 6 7 8 >
reviewboard/accounts/admin.py
reviewboard/accounts/mixins.py
reviewboard/accounts/models.py
reviewboard/accounts/pages.py
reviewboard/accounts/privacy.py
reviewboard/accounts/trophies.py
reviewboard/accounts/views.py
reviewboard/accounts/backends/ad.py
reviewboard/accounts/backends/http_digest.py
reviewboard/accounts/backends/ldap.py
reviewboard/accounts/backends/nis.py
reviewboard/accounts/backends/registry.py
reviewboard/accounts/backends/standard.py
reviewboard/accounts/backends/x509.py
reviewboard/accounts/forms/auth.py
reviewboard/accounts/forms/pages.py
reviewboard/admin/admin_sites.py
reviewboard/admin/checks.py
reviewboard/admin/decorators.py
reviewboard/admin/security_checks.py
This diff has been split across 8 pages: 1 2 3 4 5 6 7 8 >
Loading...