def __call__(self, *args, **kwargs): ret = ConsoleProgressBar.__call__(self, *args, **kwargs) if self.redirect: self.redirect(self.state) return ret