diff --git a/upstream_utils/upstream_utils.py b/upstream_utils/upstream_utils.py index bad31bf7823..9433d1f1f04 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])