From debc7438d2be8ab5f2656d95e2db110a20e34e64 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 10 Mar 2016 13:01:12 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/css_transform_rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/css_transform_rules.py b/src/calibre/ebooks/css_transform_rules.py index 165d86588d..551c9f5620 100644 --- a/src/calibre/ebooks/css_transform_rules.py +++ b/src/calibre/ebooks/css_transform_rules.py @@ -175,7 +175,7 @@ class Rule(object): def process_declaration(self, declaration): oval, declaration.changed = declaration.changed, False - for prop, parent_prop in declaration: + for prop, parent_prop in tuple(declaration): if prop.name == self.property_name and self.property_matches(prop.value): if self.action == 'remove': declaration.remove_property(prop, parent_prop)