]> git.ipfire.org Git - thirdparty/iptables.git/commit
iptables-test.py: print with color escapes only when stdout isatty
authorŠtěpán Němec <snemec@redhat.com>
Thu, 2 Sep 2021 11:33:07 +0000 (13:33 +0200)
committerPhil Sutter <phil@nwl.cc>
Mon, 13 Sep 2021 15:00:51 +0000 (17:00 +0200)
commitb714d45dc4c2423d4df4cbf7ccf238ec441675ef
tree6720e771038b5c647fc6eaddee652f465e0ab1cf
parent481626bb4e9c51477ec99dde0727e3af69d2380f
iptables-test.py: print with color escapes only when stdout isatty

When the output doesn't go to a terminal (typical case: log files),
the escape sequences are just noise.

Signed-off-by: Štěpán Němec <snemec@redhat.com>
Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables-test.py