From 6b93fc5f6c3fa4dfd04d89bb5607dd97ace37cc8 Mon Sep 17 00:00:00 2001 From: Josh Washburne Date: Sat, 6 Jan 2018 13:11:51 -0500 Subject: [PATCH] Code cleanup for Python 3. --- savepointradio/core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/savepointradio/core/utils.py b/savepointradio/core/utils.py index 37c5a18..80ca8c4 100644 --- a/savepointradio/core/utils.py +++ b/savepointradio/core/utils.py @@ -65,7 +65,7 @@ def naturalize(text): https://github.com/nathforge/django-naturalsortfield """ 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 = text.lower()