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 )
@@ -2358,7 +2358,7 @@ def infinite_recursion(max_depth=None):
23582358 # very deep recursion.
23592359 max_depth = 20_000
23602360 elif max_depth < 3 :
2361- raise ValueError ("max_depth must be at least 3, got {max_depth}" )
2361+ raise ValueError (f "max_depth must be at least 3, got { max_depth } " )
23622362 depth = get_recursion_depth ()
23632363 depth = max (depth - 1 , 1 ) # Ignore infinite_recursion() frame.
23642364 limit = depth + max_depth
You can’t perform that action at this time.
0 commit comments