From 47f7a75b8e98c0803866fecd2c17e1df7a2ad2b1 Mon Sep 17 00:00:00 2001 From: Joseph Eng Date: Sat, 13 Jul 2024 16:12:21 -0700 Subject: [PATCH] Revert changes to single quote strings Turns out that is how wpiformat wants it --- 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 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])