From d39b8b7e952f74ff52fe8685d4345d490aa6bd60 Mon Sep 17 00:00:00 2001 From: sepehrkrz Date: Tue, 14 Nov 2023 19:29:09 +0000 Subject: [PATCH] reverted with block indentation --- nwmurl/urlgennwm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nwmurl/urlgennwm.py b/nwmurl/urlgennwm.py index 7207bc7..9801295 100644 --- a/nwmurl/urlgennwm.py +++ b/nwmurl/urlgennwm.py @@ -568,7 +568,7 @@ def generate_urls_operational( if write_to_file == True: if os.path.exists("filenamelist.txt"): os.remove("filenamelist.txt") - with open("filenamelist.txt", "wt") as file: - for item in file_list: - file.write(f"{item}\n") + with open("filenamelist.txt", "wt") as file: + for item in file_list: + file.write(f"{item}\n") return file_list