File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -350,15 +350,15 @@ def add_constraint(self, requirement: Requirement) -> None:
350
350
if str (v ).startswith (str (target_version ) + "." )
351
351
]
352
352
else :
353
- raise PyPIError ("Unknown constraint operator {spec[0]}" )
353
+ raise PyPIError (f "Unknown constraint operator { spec [0 ]} " )
354
354
355
355
if len (self .versions ) != current_length :
356
356
logging .debug (
357
357
f"Found { len (self .versions )} versions after applying constraints"
358
358
)
359
359
if len (self .versions ) == 0 :
360
360
logger .critical (f"Cannot satisfy constraint { requirement } " )
361
- raise PyPIError ("Cannot satisfy constraint {str(requirement)}" )
361
+ raise PyPIError (f "Cannot satisfy constraint { str (requirement )} " )
362
362
363
363
def __str__ (self ) -> str :
364
364
return f"{ self .name } =={ self .latest_version } "
You can’t perform that action at this time.
0 commit comments