From 8e773ae8550e32e2b45c52d3b2946453934ac803 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 6 May 2019 15:45:13 -0400 Subject: [PATCH] py3: fix metadata panel showing roman series numbers python3 zip() is depleted the first time you use it, but this will need to be used many times. --- src/calibre/ebooks/metadata/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/ebooks/metadata/__init__.py b/src/calibre/ebooks/metadata/__init__.py index fde6d418cb..106f28289e 100644 --- a/src/calibre/ebooks/metadata/__init__.py +++ b/src/calibre/ebooks/metadata/__init__.py @@ -11,7 +11,7 @@ import os, sys, re from calibre import relpath, guess_type, remove_bracketed_text, prints, force_unicode from calibre.utils.config_base import tweaks -from polyglot.builtins import codepoint_to_chr, unicode_type, range, map +from polyglot.builtins import codepoint_to_chr, unicode_type, range, map, zip from polyglot.urllib import quote, unquote, urlparse @@ -159,10 +159,10 @@ def title_sort(title, order=None, lang=None): return title.strip() -coding = zip( +coding = list(zip( [1000,900,500,400,100,90,50,40,10,9,5,4,1], ["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"] -) +)) def roman(num):