Clean non-printable chars from stdout instead of dropping the whole thing

pull/7487/head
Nick Irvine 11 years ago
parent 10414145b2
commit 6b70ee23ab

@ -877,7 +877,7 @@ class Runner(object):
if hasattr(sys.stdout, "isatty"):
if "stdout" in data and sys.stdout.isatty():
if not string_functions.isprintable(data['stdout']):
data['stdout'] = ''
data['stdout'] = ''.join(c for c in data['stdout'] if string_functions.isprintable(c))
if 'item' in inject:
result.result['item'] = inject['item']

Loading…
Cancel
Save