util: futurize contrib/scripts/pydiffer
authorng0 <ng0@n0.is>
Tue, 12 Feb 2019 11:04:47 +0000 (11:04 +0000)
committerng0 <ng0@n0.is>
Tue, 12 Feb 2019 11:04:47 +0000 (11:04 +0000)
Signed-off-by: ng0 <ng0@n0.is>
contrib/scripts/pydiffer.py.in

index 10145371c32e195e19a3eac99bd06461e8af84dc..1dbe856db064967bdad3351a8ab755c765fa5592 100644 (file)
@@ -1,4 +1,5 @@
 #!@PYTHON@
+from __future__ import print_function
 import os
 import sys
 import difflib
@@ -23,7 +24,7 @@ def dc_getdiff(dc, old, new):
     for f in dc.diff_files:
         r = getdiff(os.path.join(old, f), os.path.join(new, f))
         diff.extend(r)
-    for dn, dc in dc.subdirs.items():
+    for dn, dc in list(dc.subdirs.items()):
         r = dc_getdiff(dc, os.path.join(old, dn), os.path.join(new, dn))
         diff.extend(r)
     return diff