Skip to content

Commit

Permalink
Merge pull request #5671 from segevfiner/ascii-progress-bar-fix
Browse files Browse the repository at this point in the history
Make the ascii progress bar really be ascii, not Unicode
  • Loading branch information
pradyunsg authored Jul 6, 2019
2 parents 8e26b83 + b0a6737 commit d4f0f4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions news/5671.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Make the "ascii" progress bar really be "ascii" and not Unicode.
6 changes: 3 additions & 3 deletions src/pip/_internal/utils/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ class DownloadSilentBar(BaseDownloadProgressBar, SilentBar): # type: ignore
pass


class DownloadIncrementalBar(BaseDownloadProgressBar, # type: ignore
IncrementalBar):
class DownloadBar(BaseDownloadProgressBar, # type: ignore
Bar):
pass


Expand Down Expand Up @@ -252,7 +252,7 @@ def update(self):
BAR_TYPES = {
"off": (DownloadSilentBar, DownloadSilentBar),
"on": (DefaultDownloadProgressBar, DownloadProgressSpinner),
"ascii": (DownloadIncrementalBar, DownloadProgressSpinner),
"ascii": (DownloadBar, DownloadProgressSpinner),
"pretty": (DownloadFillingCirclesBar, DownloadProgressSpinner),
"emoji": (DownloadBlueEmojiProgressBar, DownloadProgressSpinner)
}
Expand Down

0 comments on commit d4f0f4e

Please sign in to comment.