diff --git a/devtools/release.py b/devtools/release.py index 5a4723b..a96124d 100755 --- a/devtools/release.py +++ b/devtools/release.py @@ -83,13 +83,9 @@ def gen_toplevel_readme(): def gen_readme(readme_contents, qss_timestamp, sql_timestamp, timestamp): new_readme_contents= [] - skip_next = False for line in readme_contents: - if skip_next: - skip_next = False - continue if (qss_timestamp == "") and ("###QSS_VERSION###" in line): - skip_next = True + pass else: new_line = line.replace( "###QSS_VERSION###", QSS_VERSION).replace( @@ -146,7 +142,7 @@ def exclusions_for_copy(dir, contents): timestamp = time.strftime("%B %Y") print("Quakestarter release: {}".format(RELEASE)) print("Quakestarter timestamp: {}".format(timestamp)) - with open(os.path.join(QUAKE_FOLDER, "quakestarter_readme.html"), 'r', newline='\r\n') as f: + with open(os.path.join(QUAKE_FOLDER, "quakestarter_readme.html"), 'r') as f: readme_contents = f.readlines() gen_readme(readme_contents, "", sql_timestamp, timestamp) release_name = "quakestarter-noengine-" + RELEASE