Code cleanup for Python 3.
This commit is contained in:
parent
037dd98b49
commit
6b93fc5f6c
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ def naturalize(text):
|
||||||
https://github.com/nathforge/django-naturalsortfield
|
https://github.com/nathforge/django-naturalsortfield
|
||||||
"""
|
"""
|
||||||
def naturalize_int_match(match):
|
def naturalize_int_match(match):
|
||||||
return '%08d' % (int(match.group(0)),)
|
return '{:08d}'.format(int(match.group(0)))
|
||||||
|
|
||||||
text = normalize('NFKD', text).encode('ascii', 'ignore').decode('ascii')
|
text = normalize('NFKD', text).encode('ascii', 'ignore').decode('ascii')
|
||||||
text = text.lower()
|
text = text.lower()
|
||||||
|
|
Loading…
Reference in a new issue