From 8e82c31fb6675319807d7de8fc374c0788ce4702 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Tue, 24 Feb 2009 15:27:14 +0100 Subject: [PATCH] Fix text output to filenames --- linkcheck/logger/text.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/linkcheck/logger/text.py b/linkcheck/logger/text.py index a24a68ac..1f225e1d 100644 --- a/linkcheck/logger/text.py +++ b/linkcheck/logger/text.py @@ -84,6 +84,11 @@ class TextLogger (Logger): if self.fd is not None: self.fd = ansicolor.Colorizer(self.fd) + def start_fileoutput (self): + """Needed to make file descriptor color aware.""" + super(TextLogger, self).start_fileoutput() + self.fd = ansicolor.Colorizer(self.fd) + def start_output (self): """ Write generic start checking info.