summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPradyun Gedam <pradyunsg@gmail.com>2018-09-19 09:19:08 +0530
committerGitHub <noreply@github.com>2018-09-19 09:19:08 +0530
commitd5b363be5bc773f6b7e2bf4b343d14061f018f0e (patch)
tree7aaa46f146e60d6497205573b821b7e16b9a2827
parent52cf26e5cb015c4dc408693d599c78592823d404 (diff)
downloadpip-revert-5124-ui/limit-progress.tar.gz
Revert "Limit progress updates to avoid swamping the TTY"revert-5124-ui/limit-progress
-rw-r--r--news/5124.trivial1
-rw-r--r--src/pip/_internal/utils/ui.py10
2 files changed, 0 insertions, 11 deletions
diff --git a/news/5124.trivial b/news/5124.trivial
deleted file mode 100644
index bc0a19b87..000000000
--- a/news/5124.trivial
+++ /dev/null
@@ -1 +0,0 @@
-Limit progress bar update interval to 200 ms.
diff --git a/src/pip/_internal/utils/ui.py b/src/pip/_internal/utils/ui.py
index 4a337241d..6bab904ab 100644
--- a/src/pip/_internal/utils/ui.py
+++ b/src/pip/_internal/utils/ui.py
@@ -137,7 +137,6 @@ class DownloadProgressMixin(object):
def __init__(self, *args, **kwargs):
super(DownloadProgressMixin, self).__init__(*args, **kwargs)
self.message = (" " * (get_indentation() + 2)) + self.message
- self.last_update = 0.0
@property
def downloaded(self):
@@ -162,15 +161,6 @@ class DownloadProgressMixin(object):
self.next(n)
self.finish()
- def update(self):
- # limit updates to avoid swamping the TTY
- now = time.time()
- if now < self.last_update + 0.2:
- return
- self.last_update = now
-
- super(DownloadProgressMixin, self).update()
-
class WindowsMixin(object):