From 5a0c847dd340e0f51deae59eb01980e852cd0438 Mon Sep 17 00:00:00 2001 From: ng0 Date: Tue, 12 Feb 2019 11:04:47 +0000 Subject: [PATCH] util: futurize contrib/scripts/pydiffer Signed-off-by: ng0 --- contrib/scripts/pydiffer.py.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/scripts/pydiffer.py.in b/contrib/scripts/pydiffer.py.in index 10145371c..1dbe856db 100644 --- a/contrib/scripts/pydiffer.py.in +++ b/contrib/scripts/pydiffer.py.in @@ -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 -- 2.25.1