bitbake: tinfoil: support other fds, enable color support
authorChristopher Larson <chris_larson@mentor.com>
Sat, 26 Jan 2013 00:56:30 +0000 (17:56 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 31 Jan 2013 12:46:20 +0000 (12:46 +0000)
commit9b0c27447a21b347e54a6ab102ccee967b822b9c
tree0ea24417c263a40bf457cc0bbcda63627c5b0603
parentc2edd84b6738f5b8d89802e8fe8039d784580983
bitbake: tinfoil: support other fds, enable color support

Rather than only handling sys.stdout, also support any arbitrary file object,
and enable color for the formatter if that file is a tty.

(Bitbake rev: c46db4be4cc4dc53376ed3f574b2f1c868730f2a)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/tinfoil.py