diff options
author | ng0 <ng0@n0.is> | 2019-10-12 18:16:07 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-10-12 18:16:07 +0000 |
commit | a5f5e7ed9b07b902af4438d76087e034abcba9b2 (patch) | |
tree | 6f376f93f1c785103d0b30f54311a0f61d2bdced /contrib/scripts/pydiffer.py.in | |
parent | 8e827de2a1db34dfe15f5f9da2850ca469b5ecc3 (diff) | |
download | gnunet-a5f5e7ed9b07b902af4438d76087e034abcba9b2.tar.gz gnunet-a5f5e7ed9b07b902af4438d76087e034abcba9b2.zip |
format python
Diffstat (limited to 'contrib/scripts/pydiffer.py.in')
-rw-r--r-- | contrib/scripts/pydiffer.py.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/scripts/pydiffer.py.in b/contrib/scripts/pydiffer.py.in index 35d9ffa35..08f0f4ae6 100644 --- a/contrib/scripts/pydiffer.py.in +++ b/contrib/scripts/pydiffer.py.in | |||
@@ -10,7 +10,10 @@ def getdiff(old, new): | |||
10 | diff = [] | 10 | diff = [] |
11 | with open(old) as a: | 11 | with open(old) as a: |
12 | with open(new) as b: | 12 | with open(new) as b: |
13 | for l in difflib.unified_diff(a.read().splitlines(), b.read().splitlines()): | 13 | for l in difflib.unified_diff( |
14 | a.read().splitlines(), | ||
15 | b.read().splitlines() | ||
16 | ): | ||
14 | diff.append(l) | 17 | diff.append(l) |
15 | return diff | 18 | return diff |
16 | 19 | ||