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 @@ -1084,7 +1084,7 @@ def set_memlimit(limit: str) -> None:
10841084 global real_max_memuse
10851085 memlimit = _parse_memlimit (limit )
10861086 if memlimit < _2G - 1 :
1087- raise ValueError ('Memory limit {limit!r} too low to be useful' )
1087+ raise ValueError (f 'Memory limit { limit !r} too low to be useful' )
10881088
10891089 real_max_memuse = memlimit
10901090 memlimit = min (memlimit , MAX_Py_ssize_t )
@@ -2359,7 +2359,7 @@ def infinite_recursion(max_depth=None):
23592359 # very deep recursion.
23602360 max_depth = 20_000
23612361 elif max_depth < 3 :
2362- raise ValueError ("max_depth must be at least 3, got {max_depth}" )
2362+ raise ValueError (f "max_depth must be at least 3, got { max_depth } " )
23632363 depth = get_recursion_depth ()
23642364 depth = max (depth - 1 , 1 ) # Ignore infinite_recursion() frame.
23652365 limit = depth + max_depth
You can’t perform that action at this time.
0 commit comments