Skip to content

Commit 6a1ecb3

Browse files
committed
Fixes #27 - Use six.iteritems for python3 compat
Since I see six is already in use here, looks like this was just an omission.
1 parent c20b9e2 commit 6a1ecb3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ooxml/serialize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ def is_header(self, elem, font_size, node, style=None):
989989
except:
990990
pass
991991

992-
sorted_list_of_sizes = list(collections.OrderedDict(sorted(list_of_sizes.iteritems(), key=lambda t: t[0])))
992+
sorted_list_of_sizes = list(collections.OrderedDict(sorted(six.iteritems(list_of_sizes), key=lambda t: t[0])))
993993
font_size_to_check = font_size
994994

995995
if len(sorted_list_of_sizes) > 0:

0 commit comments

Comments
 (0)