summaryrefslogtreecommitdiffstats
path: root/tqdm/utils.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 15:59:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 15:59:52 +0000
commita2eb45dc71bcd8ec656e4357e66e674e2c3fa17e (patch)
tree6874a3d60e42c8c0fd8bf7b201806e1a2ca32c24 /tqdm/utils.py
parentAdding upstream version 4.66.2. (diff)
downloadtqdm-a2eb45dc71bcd8ec656e4357e66e674e2c3fa17e.tar.xz
tqdm-a2eb45dc71bcd8ec656e4357e66e674e2c3fa17e.zip
Adding upstream version 4.66.4.upstream/4.66.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tqdm/utils.py')
-rw-r--r--tqdm/utils.py6
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)