]> git.lyx.org Git - features.git/commitdiff
lyx2lyx: convert iteritems -> items to be compatible with python 2 and 3
authorJosé Matos <jamatos@lyx.org>
Wed, 29 Mar 2017 11:34:53 +0000 (12:34 +0100)
committerJosé Matos <jamatos@lyx.org>
Wed, 29 Mar 2017 11:34:53 +0000 (12:34 +0100)
lib/lyx2lyx/lyx_2_3.py

index 5b770ed7370f27fde1aeaa24835f75bad038bb5d..ddf7822fb9f0c14723e3a27bfdabc6a0fff1de8f 100644 (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))