Skip to content

Commit

Permalink
Convert single quote strings into double quote strings
Browse files Browse the repository at this point in the history
  • Loading branch information
KangarooKoala committed Jul 13, 2024
1 parent 00d91d2 commit a1def44
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions upstream_utils/upstream_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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])
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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])
Expand Down

0 comments on commit a1def44

Please sign in to comment.