Skip to content

Commit

Permalink
Merge pull request #14 from jarmovanlenthe/master
Browse files Browse the repository at this point in the history
Remove references to six
  • Loading branch information
ralphje authored Mar 15, 2020
2 parents 0f6fbf3 + 20d2cc8 commit 85a26c2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internationalflavor/forms.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from itertools import chain
import locale
from django import forms
from django.utils import six
from django.utils.encoding import force_text
from django.utils.html import format_html

Expand Down Expand Up @@ -35,11 +34,7 @@ def __hash__(self):


def _compare_locale_str(value):
# In PY2, strxfrm does not support unicode encoded values, so we have to get creative.
if not six.PY2:
return locale.strxfrm(force_text(value))
else:
return _compare_by_strcoll(force_text(value))
return locale.strxfrm(force_text(value))


def _compare_str(value):
Expand Down

0 comments on commit 85a26c2

Please sign in to comment.