diff --git a/temporal/t.remove/t.remove.py b/temporal/t.remove/t.remove.py index f547ce6fafa..a5bb3d85fd8 100755 --- a/temporal/t.remove/t.remove.py +++ b/temporal/t.remove/t.remove.py @@ -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: diff --git a/temporal/t.unregister/t.unregister.py b/temporal/t.unregister/t.unregister.py index f2635941187..b46c9fedd24 100755 --- a/temporal/t.unregister/t.unregister.py +++ b/temporal/t.unregister/t.unregister.py @@ -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: