Skip to content

Commit 2869780

Browse files
committed
minor
1 parent e5b500e commit 2869780

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/boostedhh/submit_utils.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -250,14 +250,14 @@ def submit(
250250
def replace_batch_size(file_path: Path, new_batch_size: int):
251251
"""Replacing batch size in given file"""
252252
import re
253-
253+
254254
# Read the file
255-
with file_path.open('r') as file:
255+
with file_path.open("r") as file:
256256
content = file.read()
257-
257+
258258
# Replace using regex
259-
updated_content = re.sub(r'--batch-size \d+', f'--batch-size {new_batch_size}', content)
260-
259+
updated_content = re.sub(r"--batch-size \d+", f"--batch-size {new_batch_size}", content)
260+
261261
# Write back to the file
262-
with open(file_path, 'w') as file:
263-
file.write(updated_content)
262+
with file_path.open("w") as file:
263+
file.write(updated_content)

0 commit comments

Comments
 (0)