From: ng0 Date: Tue, 12 Feb 2019 11:04:47 +0000 (+0000) Subject: util: futurize contrib/scripts/pydiffer X-Git-Tag: v0.11.0~63^2~99 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5a0c847dd340e0f51deae59eb01980e852cd0438;p=oweals%2Fgnunet.git util: futurize contrib/scripts/pydiffer Signed-off-by: ng0 --- 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