diff options
Diffstat (limited to 'tqdm/utils.py')
-rw-r--r-- | tqdm/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tqdm/utils.py b/tqdm/utils.py index 9883fda..f7060be 100644 --- a/tqdm/utils.py +++ b/tqdm/utils.py @@ -167,7 +167,7 @@ class SimpleTextIOWrapper(ObjectWrapper): """ # pylint: disable=too-few-public-methods def __init__(self, wrapped, encoding): - super(SimpleTextIOWrapper, self).__init__(wrapped) + super().__init__(wrapped) self.wrapper_setattr('encoding', encoding) def write(self, s): @@ -211,7 +211,7 @@ class DisableOnWriteError(ObjectWrapper): return inner def __init__(self, wrapped, tqdm_instance): - super(DisableOnWriteError, self).__init__(wrapped) + super().__init__(wrapped) if hasattr(wrapped, 'write'): self.wrapper_setattr( 'write', self.disable_on_exception(tqdm_instance, wrapped.write)) @@ -229,7 +229,7 @@ class CallbackIOWrapper(ObjectWrapper): Wrap a given `file`-like object's `read()` or `write()` to report lengths to the given `callback` """ - super(CallbackIOWrapper, self).__init__(stream) + super().__init__(stream) func = getattr(stream, method) if method == "write": @wraps(func) |