Style change

This commit is contained in:
Georgios Verigakis
2020-07-20 13:41:50 +03:00
parent 64671e1ceb
commit 0faea87060

View File

@@ -112,7 +112,8 @@ class Infinite(object):
try: try:
return self.file.isatty() if self.check_tty else True return self.file.isatty() if self.check_tty else True
except AttributeError: 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): def next(self, n=1):
now = monotonic() now = monotonic()