From b4100a01761511d7be4375d2f388f7193923bd3a Mon Sep 17 00:00:00 2001 From: Tapish Rathore Date: Sat, 16 Sep 2023 16:06:37 +0530 Subject: [PATCH] revert changes of previous commits since not working --- scripts/update.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scripts/update.py b/scripts/update.py index 58a1dd00..c9c38ede 100644 --- a/scripts/update.py +++ b/scripts/update.py @@ -17,14 +17,7 @@ new_version = f"{version_parts[0]}.{version_parts[1]}.{new_patch}" # Update the Cargo.toml file with the new version number -in_package_section = False for line in fileinput.input("devprofiler/Cargo.toml", inplace=True): - if line.strip() == "[package]": - in_package_section = True - elif line.strip().startswith("["): - in_package_section = False - - if in_package_section: - line = re.sub(r'^version\s*=\s*".*?"', f'version = "{new_version}"', line.rstrip()) + line = re.sub(r'^version\s*=\s*".*?"', f'version = "{new_version}"', line.rstrip()) print(line)