lyx2lyx: convert iteritems -> items to be compatible with python 2 and 3

This commit is contained in:
José Matos 2017-03-29 12:34:53 +01:00
parent f043541ebd
commit 67bf174b10

View File

@ -166,7 +166,7 @@ def revert_ibranches(document):
i += 1
# now we need to add the new branches to the header
for old, new in ibranches.iteritems():
for old, new in ibranches.items():
i = find_token(document.header, "\\branch " + old, 0)
if i == -1:
document.warning("Can't find branch %s even though we found it before!" % (old))