[Reproducible-commits] [debbindiff] 01/01: Fix HTML file creation from a bug introduced by hastiness
Jérémy Bobbio
lunar at moszumanska.debian.org
Tue Sep 30 16:25:41 UTC 2014
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository debbindiff.
commit 28c6f7639d3d1c2b54a22df3e5a99d1dd9aca615
Author: Jérémy Bobbio <lunar at debian.org>
Date: Tue Sep 30 18:25:34 2014 +0200
Fix HTML file creation from a bug introduced by hastiness
---
debbindiff.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/debbindiff.py b/debbindiff.py
index 3d04e4b..772698a 100755
--- a/debbindiff.py
+++ b/debbindiff.py
@@ -42,8 +42,9 @@ def main():
logger.setLevel(logging.DEBUG)
differences = debbindiff.comparators.compare_files(parsed_args.file1, parsed_args.file2)
if len(differences) > 0 and parsed_args.html_output:
+ output = open(parsed_args.html_output, 'w')
def print_func(*args, **kwargs):
- kwargs['file'] = open(parsed_args.html_output, 'w')
+ kwargs['file'] = output
print(*args, **kwargs)
output_html(differences, print_func=print_func)
if len(differences) > 0:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debbindiff.git
More information about the Reproducible-commits
mailing list