File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
from pip ._vendor .requests .models import Request , Response
9
9
from pip ._vendor .rich .console import Console , ConsoleOptions , RenderResult
10
+ from pip ._vendor .rich .markup import escape
10
11
from pip ._vendor .rich .text import Text
11
12
12
13
if TYPE_CHECKING :
@@ -182,7 +183,7 @@ class MissingPyProjectBuildRequires(DiagnosticPipError):
182
183
183
184
def __init__ (self , * , package : str ) -> None :
184
185
super ().__init__ (
185
- message = Text ( f"Can not process { package } " ) ,
186
+ message = f"Can not process { escape ( package ) } " ,
186
187
context = Text (
187
188
"This package has an invalid pyproject.toml file.\n "
188
189
"The [build-system] table is missing the mandatory `requires` key."
@@ -199,7 +200,7 @@ class InvalidPyProjectBuildRequires(DiagnosticPipError):
199
200
200
201
def __init__ (self , * , package : str , reason : str ) -> None :
201
202
super ().__init__ (
202
- message = Text ( f"Can not process { package } " ) ,
203
+ message = f"Can not process { escape ( package ) } " ,
203
204
context = Text (
204
205
"This package has an invalid `build-system.requires` key in "
205
206
f"pyproject.toml.\n { reason } "
You can’t perform that action at this time.
0 commit comments