From 8e125b56a08e42177d07c783e6b7b598378c6fdb Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Wed, 20 Mar 2019 23:54:11 -0400 Subject: [PATCH] python3: listify the range() generator before appending to it We explicitly need a list here. --- src/calibre/ebooks/metadata/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/metadata/__init__.py b/src/calibre/ebooks/metadata/__init__.py index f05de87a89..ba6bf15571 100644 --- a/src/calibre/ebooks/metadata/__init__.py +++ b/src/calibre/ebooks/metadata/__init__.py @@ -135,7 +135,7 @@ def get_title_sort_pat(lang=None): _ignore_starts = u'\'"'+u''.join(codepoint_to_chr(x) for x in - range(0x2018, 0x201e)+[0x2032, 0x2033]) + list(range(0x2018, 0x201e))+[0x2032, 0x2033]) def title_sort(title, order=None, lang=None):