py3 compat

This commit is contained in:
Kovid Goyal 2021-01-22 07:55:59 +05:30
parent daefabde4c
commit 5ab0639d1f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -314,7 +314,7 @@ class OEBReader(object):
unchecked = new
version = int(self.oeb.version[0])
removed_items_to_ignore = getattr(self.oeb, 'removed_items_to_ignore', ())
for item in sorted(extras):
for item in extras:
if item.href in removed_items_to_ignore:
continue
if version >= 2: