Skip to content

Commit d4f0f4e

Browse files
authored
Merge pull request #5671 from segevfiner/ascii-progress-bar-fix
Make the ascii progress bar really be ascii, not Unicode
2 parents 8e26b83 + b0a6737 commit d4f0f4e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

news/5671.bugfix

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Make the "ascii" progress bar really be "ascii" and not Unicode.

src/pip/_internal/utils/ui.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ class DownloadSilentBar(BaseDownloadProgressBar, SilentBar): # type: ignore
208208
pass
209209

210210

211-
class DownloadIncrementalBar(BaseDownloadProgressBar, # type: ignore
212-
IncrementalBar):
211+
class DownloadBar(BaseDownloadProgressBar, # type: ignore
212+
Bar):
213213
pass
214214

215215

@@ -252,7 +252,7 @@ def update(self):
252252
BAR_TYPES = {
253253
"off": (DownloadSilentBar, DownloadSilentBar),
254254
"on": (DefaultDownloadProgressBar, DownloadProgressSpinner),
255-
"ascii": (DownloadIncrementalBar, DownloadProgressSpinner),
255+
"ascii": (DownloadBar, DownloadProgressSpinner),
256256
"pretty": (DownloadFillingCirclesBar, DownloadProgressSpinner),
257257
"emoji": (DownloadBlueEmojiProgressBar, DownloadProgressSpinner)
258258
}

0 commit comments

Comments
 (0)