diff options
| author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2022-08-17 11:57:00 +1200 |
|---|---|---|
| committer | Douglas Bagnall <dbagnall@samba.org> | 2022-09-06 21:12:36 +0000 |
| commit | 6160e956b5931a2cbeb98e042c2fe71981115ba0 (patch) | |
| tree | 2ccd7e7d5eb4379b0b2a61f24a69b1bc4640b418 /python | |
| parent | 6ced3d21513907dee7da6c0f7a4bd345120b439d (diff) | |
| download | samba-6160e956b5931a2cbeb98e042c2fe71981115ba0.tar.gz samba-6160e956b5931a2cbeb98e042c2fe71981115ba0.tar.bz2 samba-6160e956b5931a2cbeb98e042c2fe71981115ba0.zip | |
samba-tool visualize: remove py2 compat for colour calculations
io.StringIO has .isatty(); the old cStringIO did not,
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Diffstat (limited to 'python')
| -rw-r--r-- | python/samba/netcmd/visualize.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/python/samba/netcmd/visualize.py b/python/samba/netcmd/visualize.py index 71965799b44..49e64794131 100644 --- a/python/samba/netcmd/visualize.py +++ b/python/samba/netcmd/visualize.py @@ -162,9 +162,6 @@ class GraphCommand(Command): return None if isinstance(output, str) and output != '-': return None - if not hasattr(self.outf, 'isatty'): - # not a real file, perhaps cStringIO in testing - return None if not self.outf.isatty(): return None |
