Skip to content

Commit

Permalink
Remove six dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankuczka committed Aug 26, 2015
1 parent 671da09 commit 79f31b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions autocompleter/utils.py
Expand Up @@ -2,7 +2,6 @@
import re
import unicodedata
import itertools
import six

from autocompleter import settings

Expand All @@ -27,7 +26,7 @@ def get_normalized_term(term, replaced_chars=[]):
7) Remove extra spaces
8) Remove all characters that are not alphanumeric
"""
if isinstance(term, six.binary_type):
if isinstance(term, bytes):
term = term.decode('utf-8')
term = term.lower()
term = unicodedata.normalize('NFKD', term).encode('ASCII', 'ignore').decode('utf-8')
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Expand Up @@ -2,4 +2,3 @@
Django>=1.7
hiredis
redis>=2.4.10
six==1.9.0

0 comments on commit 79f31b9

Please sign in to comment.