summaryrefslogtreecommitdiffstats
path: root/tqdm/contrib/slack.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-02 08:25:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-02 08:25:05 +0000
commit5df651a8327faba3a5773de57c829fdec6a38bd2 (patch)
treebda43603e585b1433e68aacbfeaccf8f716620e4 /tqdm/contrib/slack.py
parentAdding upstream version 4.64.1. (diff)
downloadtqdm-5df651a8327faba3a5773de57c829fdec6a38bd2.tar.xz
tqdm-5df651a8327faba3a5773de57c829fdec6a38bd2.zip
Adding upstream version 4.66.2.upstream/4.66.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tqdm/contrib/slack.py')
-rw-r--r--tqdm/contrib/slack.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/tqdm/contrib/slack.py b/tqdm/contrib/slack.py
index b478d92..d4c850c 100644
--- a/tqdm/contrib/slack.py
+++ b/tqdm/contrib/slack.py
@@ -6,10 +6,8 @@ Usage:
>>> for i in trange(10, token='{token}', channel='{channel}'):
... ...
-![screenshot](https://img.tqdm.ml/screenshot-slack.png)
+![screenshot](https://tqdm.github.io/img/screenshot-slack.png)
"""
-from __future__ import absolute_import
-
import logging
from os import getenv
@@ -19,7 +17,6 @@ except ImportError:
raise ImportError("Please `pip install slack-sdk`")
from ..auto import tqdm as tqdm_auto
-from ..utils import _range
from .utils_worker import MonoWorker
__author__ = {"github.com/": ["0x2b3bfa0", "casperdcl"]}
@@ -114,11 +111,8 @@ class tqdm_slack(tqdm_auto):
def tsrange(*args, **kwargs):
- """
- A shortcut for `tqdm.contrib.slack.tqdm(xrange(*args), **kwargs)`.
- On Python3+, `range` is used instead of `xrange`.
- """
- return tqdm_slack(_range(*args), **kwargs)
+ """Shortcut for `tqdm.contrib.slack.tqdm(range(*args), **kwargs)`."""
+ return tqdm_slack(range(*args), **kwargs)
# Aliases