Skip to content

Commit

Permalink
remove 'r' bc default option for open file
Browse files Browse the repository at this point in the history
  • Loading branch information
maaikelimper committed Jan 30, 2025
1 parent 12c047f commit db72cf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wis2box-ctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def build_local_images() -> None:

image_file = glob.glob('docker-compose.images-*.yml')[0]
# overwrite the image tag with the local image
with open(image_file, 'r') as f:
with open(image_file) as f:
data = f.readlines()
with open(image_file, 'w') as f:
for line in data:
Expand Down Expand Up @@ -310,7 +310,7 @@ def update_images_yml() -> str:
if current_version == version:
print(f'Current version={version}, no update of images file required')
# docker pull the images to ensure they are up to date
with open(f'docker-compose.images-{version}.yml', 'r') as f:
with open(f'docker-compose.images-{version}.yml') as f:
for line in f:
if 'image:' in line:
image = line.split(':', 1)[1].strip()
Expand Down

0 comments on commit db72cf8

Please sign in to comment.