From 0faea8706098ad41785b56d75d5498fb908f0672 Mon Sep 17 00:00:00 2001 From: Georgios Verigakis Date: Mon, 20 Jul 2020 13:41:50 +0300 Subject: [PATCH] Style change --- progress/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/progress/__init__.py b/progress/__init__.py index 18f5d0f..09f3efa 100644 --- a/progress/__init__.py +++ b/progress/__init__.py @@ -112,7 +112,8 @@ class Infinite(object): try: return self.file.isatty() if self.check_tty else True except AttributeError: - raise AttributeError('\'{}\' object has no attribute \'isatty\'. Try setting parameter check_tty=False.'.format(self)) + msg = "%s has no attribute 'isatty'. Try setting check_tty=False." % self + raise AttributeError(msg) def next(self, n=1): now = monotonic()