log: fix auto colorizing for custom streams
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 10 Jul 2014 08:26:19 +0000 (11:26 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 18 Jul 2014 13:08:28 +0000 (16:08 +0300)
commit2faed835d50d24630de2d756bd0325f9b9a9c480
tree84f774f13783cc74b19ee894bbf42e5d155b4ba8
parent5ee9fb39bf41ab8f7c074becc15dcf3a3cb15449
log: fix auto colorizing for custom streams

Check for existence of isatty() method in the stream object. Some custom
streams (e.g. in nose) do not necessarily have this.

Change-Id: I4c8386dfd6f016f926f2eb70b953b19095d585c2
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/log.py