Inline constants that were being imported from `progress`
This decouples this location from the `progress` package, making it
possible to no longer depend on that package within pip.
@@ -5,8 +5,6 @@ import sys
import time
from typing import IO, Iterator
-from pip._vendor.progress import HIDE_CURSOR, SHOW_CURSOR
-
from pip._internal.utils.compat import WINDOWS
from pip._internal.utils.logging import get_indentation
@@ -138,6 +136,10 @@ def open_spinner(message: str) -> Iterator[SpinnerInterface]:
spinner.finish("done")
+HIDE_CURSOR = "\x1b[?25l"
+SHOW_CURSOR = "\x1b[?25h"
+
+
@contextlib.contextmanager
def hidden_cursor(file: IO[str]) -> Iterator[None]:
# The Windows terminal does not support the hide/show cursor ANSI codes,
