Switch from smart_unicode/force_unicode to force_text.
Review Request #10206 — Created Oct. 8, 2018 and submitted — Latest diff uploaded
Django's
smart_unicode
andforce_unicode
functions were deprecated
long ago in favor ofsmart_text
andforce_text
. We use both in a few
places, though forsmart_unicode
we really wanted theforce_
versions.This change updates the code to call these modern methods instead,
getting us a small step toward modern Django compatibility.
Unit tests pass.
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.
orig
1
2
3
reviewboard/diffviewer/tests/test_diffutils.py |
---|