diff --git a/src/calibre/ebooks/oeb/stylizer.py b/src/calibre/ebooks/oeb/stylizer.py index a19a36de8c..626af21b97 100644 --- a/src/calibre/ebooks/oeb/stylizer.py +++ b/src/calibre/ebooks/oeb/stylizer.py @@ -848,7 +848,7 @@ class Style(object): self._get('padding-bottom'), base=self.height) def __str__(self): - items = sorted(self._style.items()) + items = sorted(self._style.iteritems()) return '; '.join("%s: %s" % (key, val) for key, val in items) def cssdict(self):