diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-12-04 09:53:29 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-12-04 09:53:29 +0100 |
commit | 61fc15ef48b0ffdabe101bb90a786600a6d56e1a (patch) | |
tree | 9f99661aad1886235dee2acba13c4c1bc9c2f78f | |
parent | Add pkgcheck XML output to HTML formatter scripts (diff) | |
download | qa-scripts-61fc15ef.tar.gz qa-scripts-61fc15ef.tar.bz2 qa-scripts-61fc15ef.zip |
pkgcheck2html: Add stdin support
-rwxr-xr-x | pkgcheck2html/pkgcheck2html.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgcheck2html/pkgcheck2html.py b/pkgcheck2html/pkgcheck2html.py index 466d8c1..44a9c2b 100755 --- a/pkgcheck2html/pkgcheck2html.py +++ b/pkgcheck2html/pkgcheck2html.py @@ -34,6 +34,8 @@ def result_sort_key(r): def get_results(input_paths, class_mapping): for input_path in input_paths: + if input_path == '-': + input_path = sys.stdin checks = xml.etree.ElementTree.parse(input_path).getroot() for r in checks: yield Result(r, class_mapping) |