Skip to content

Commit

Permalink
Move line out of context manager
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix committed Oct 17, 2024
1 parent 6a751c9 commit 71bc611
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion temporal/t.remove/t.remove.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ def main():
dataset_list = tuple(datasets.split(","))

if file:
line = True
with open(file) as fd:
line = True
while True:
line = fd.readline()
if not line:
Expand Down
2 changes: 1 addition & 1 deletion temporal/t.unregister/t.unregister.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ def main():

# Read the map list from file
if file:
line = True
with open(file) as fd:
line = True
while True:
line = fd.readline()
if not line:
Expand Down

0 comments on commit 71bc611

Please sign in to comment.