mirror of
https://github.com/django/django.git
synced 2025-09-22 02:02:46 +00:00
Replaced "not PY3" by "PY2", new in six 1.4.0.
This commit is contained in:
parent
4292097078
commit
365c3e8b73
27 changed files with 47 additions and 49 deletions
|
@ -12,7 +12,7 @@ from django.utils.six.moves import html_entities
|
|||
from django.utils.translation import ugettext_lazy, ugettext as _, pgettext
|
||||
from django.utils.safestring import mark_safe
|
||||
|
||||
if not six.PY3:
|
||||
if six.PY2:
|
||||
# Import force_unicode even though this module doesn't use it, because some
|
||||
# people rely on it being here.
|
||||
from django.utils.encoding import force_unicode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue