From 2165ef7031e804939610f6843e79b140b091d1b9 Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Mon, 15 Aug 2016 21:37:48 +0200 Subject: [PATCH] Enable quiet mode when writing output to stdout (otherwise informational text output would be mixed into the SVG output) fixes #47 --- scour/scour.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scour/scour.py b/scour/scour.py index 5e9aaf0..3532497 100644 --- a/scour/scour.py +++ b/scour/scour.py @@ -3306,6 +3306,9 @@ def parse_args(args=None, ignore_additional_args=False): outfile = sys.stdout.buffer except AttributeError: outfile = sys.stdout + # enable quiet mode when writing output to stdout + # otherwise informational text output would be mixed into the SVG output + options.quiet = True return options, [infile, outfile]