projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65d93b3
)
util: futurize contrib/scripts/pydiffer
author
ng0
<ng0@n0.is>
Tue, 12 Feb 2019 11:04:47 +0000
(11:04 +0000)
committer
ng0
<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
patch
|
blob
|
history
diff --git
a/contrib/scripts/pydiffer.py.in
b/contrib/scripts/pydiffer.py.in
index 10145371c32e195e19a3eac99bd06461e8af84dc..1dbe856db064967bdad3351a8ab755c765fa5592 100644
(file)
--- 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