Skip to content

Commit

Permalink
Merge pull request #5797 from pypa/revert-5124-ui/limit-progress
Browse files Browse the repository at this point in the history
Revert "Limit progress updates to avoid swamping the TTY"
  • Loading branch information
pradyunsg committed Sep 19, 2018
2 parents 52cf26e + d5b363b commit a1b326d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion news/5124.trivial

This file was deleted.

10 changes: 0 additions & 10 deletions src/pip/_internal/utils/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -162,15 +161,6 @@ def iter(self, it, n=1):
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):

Expand Down

0 comments on commit a1b326d

Please sign in to comment.