Skip to content

Commit 94b00eb

Browse files
committed
Fix up a couple nits in tqdm conversion
1 parent 42e55e0 commit 94b00eb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

twine/repository.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414
from __future__ import absolute_import, unicode_literals, print_function
1515

16-
from tqdm import tqdm as tqdm
16+
from tqdm import tqdm
1717

1818
import requests
1919
from requests import adapters
@@ -36,8 +36,10 @@
3636
class ProgressBar(tqdm):
3737

3838
def update_to(self, n):
39-
"""
40-
identical to update, except `n` should be current value and not delta.
39+
"""Update the bar in the way compatible with requests-toolbelt.
40+
41+
This is identical to tqdm.update, except ``n`` will be the current
42+
value - not the delta as tqdm expects.
4143
"""
4244
self.update(n - self.n)
4345

0 commit comments

Comments
 (0)