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:
1084
1084
global real_max_memuse
1085
1085
memlimit = _parse_memlimit (limit )
1086
1086
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' )
1088
1088
1089
1089
real_max_memuse = memlimit
1090
1090
memlimit = min (memlimit , MAX_Py_ssize_t )
@@ -2358,7 +2358,7 @@ def infinite_recursion(max_depth=None):
2358
2358
# very deep recursion.
2359
2359
max_depth = 20_000
2360
2360
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 } " )
2362
2362
depth = get_recursion_depth ()
2363
2363
depth = max (depth - 1 , 1 ) # Ignore infinite_recursion() frame.
2364
2364
limit = depth + max_depth
You can’t perform that action at this time.
0 commit comments