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 @@ -1059,7 +1059,7 @@ def set_memlimit(limit: str) -> None:
10591059 global real_max_memuse
10601060 memlimit = _parse_memlimit (limit )
10611061 if memlimit < _2G - 1 :
1062- raise ValueError ('Memory limit {limit!r} too low to be useful' )
1062+ raise ValueError (f 'Memory limit { limit !r} too low to be useful' )
10631063
10641064 real_max_memuse = memlimit
10651065 memlimit = min (memlimit , MAX_Py_ssize_t )
@@ -2295,7 +2295,7 @@ def infinite_recursion(max_depth=None):
22952295 # very deep recursion.
22962296 max_depth = 20_000
22972297 elif max_depth < 3 :
2298- raise ValueError ("max_depth must be at least 3, got {max_depth}" )
2298+ raise ValueError (f "max_depth must be at least 3, got { max_depth } " )
22992299 depth = get_recursion_depth ()
23002300 depth = max (depth - 1 , 1 ) # Ignore infinite_recursion() frame.
23012301 limit = depth + max_depth
You can’t perform that action at this time.
0 commit comments