From a1def4473bbb5090a37368e683e2ca3c7c1ee02b Mon Sep 17 00:00:00 2001 From: Joseph Eng Date: Sat, 13 Jul 2024 15:53:44 -0700 Subject: [PATCH] Convert single quote strings into double quote strings --- upstream_utils/upstream_utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/upstream_utils/upstream_utils.py b/upstream_utils/upstream_utils.py index 19af3b86ff5..bad31bf7823 100644 --- a/upstream_utils/upstream_utils.py +++ b/upstream_utils/upstream_utils.py @@ -251,8 +251,8 @@ def replace_tag(self, tag): with open(path, "r") as file: lines = file.readlines() - previous_text = f"tag = '{self.old_tag}'" - new_text = f"tag = '{tag}'" + previous_text = f"tag = \"{self.old_tag}\"" + new_text = f"tag = \"{tag}\"" for i in range(len(lines)): lines[i] = lines[i].replace(previous_text, new_text) @@ -266,7 +266,7 @@ def clone(self): def rebase(self, new_tag): self.open_repo( - err_msg_if_absent='There\'s nothing to rebase. Run the "clone" command first.' + err_msg_if_absent="There's nothing to rebase. Run the \"clone\" command first." ) subprocess.run(["git", "fetch", "origin", new_tag]) @@ -295,7 +295,7 @@ def rebase(self, new_tag): def format_patch(self, tag): self.open_repo( - err_msg_if_absent='There\'s nothing to run format-patch on. Run the "clone" and "rebase" commands first.' + err_msg_if_absent="There's nothing to run format-patch on. Run the \"clone\" and \"rebase\" commands first." ) if self.pre_patch_commits > 0: @@ -334,7 +334,7 @@ def format_patch(self, tag): def copy_upstream_to_thirdparty(self): self.open_repo( - err_msg_if_absent='There\'s no repository to copy from. Run the "clone" command first.' + err_msg_if_absent="There's no repository to copy from. Run the \"clone\" command first." ) subprocess.run(["git", "switch", "--detach", self.old_tag])