Switch to compatibility imports for gettext.

Review Request #11970 — Created Jan. 21, 2022 and submitted

chipx86
Django Evolution
release-2.x
django-evolution

Django deprecated the u-prefixed versions of the gettext methods,
removing them in 4.0. Since we support Django 1.6 on up, it's important
to use the right import for the right version of Django.

This adds a new django_evolution.compat.translation module, which
imports the correct versions and provides them under the new names. All
code has been switched over to this.

All unit tests pass on all supported versions of Django and Python.

Summary
Switch to compatibility imports for gettext.
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.x (fd73fa7)
Loading...