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/hostingsvcs/gitlab.py
reviewboard/hostingsvcs/gitorious.py
reviewboard/hostingsvcs/googlecode.py
reviewboard/hostingsvcs/jira.py
reviewboard/hostingsvcs/kiln.py
reviewboard/hostingsvcs/models.py
reviewboard/hostingsvcs/rbgateway.py
reviewboard/hostingsvcs/redmine.py
reviewboard/hostingsvcs/service.py
reviewboard/hostingsvcs/sourceforge.py
reviewboard/hostingsvcs/splat.py
reviewboard/hostingsvcs/trac.py
reviewboard/hostingsvcs/unfuddle.py
reviewboard/hostingsvcs/versionone.py
reviewboard/integrations/forms.py
reviewboard/integrations/models.py
reviewboard/notifications/admin.py
reviewboard/notifications/forms.py
reviewboard/notifications/models.py
reviewboard/notifications/webhooks.py
This diff has been split across 8 pages: < 1 2 3 4 5 6 7 8 >
Loading...