Skip to content

Commit 3e872f2

Browse files
committed
fix: remove decodes that aren't relevant
1 parent d6129d7 commit 3e872f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/update-demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def _create_demo_pr(demo_path: Path, branch: str, commit_start: str) -> None:
149149
gh("repo", "set-default", f"{DEMO.app_author}/{DEMO.app_name}")
150150
search_results: subprocess.CompletedProcess = gh("pr", "list", "--state", "open", "--search", branch)
151151

152-
if "no pull requests match your search" not in search_results.stdout.decode("utf-8").strip():
152+
if "no pull requests match your search" not in search_results.stdout:
153153
url: str = _get_pr_url(branch=branch)
154154
typer.secho(f"Skipping PR creation due to existing PR found for branch {branch} at {url}")
155155
return
@@ -171,7 +171,7 @@ def _get_pr_url(branch: str) -> str:
171171
result: subprocess.CompletedProcess = gh("pr", "view", branch, "--json", "url", "--jq", ".url")
172172
if result.returncode != 0:
173173
raise ValueError(f"Failed to find a PR URL for branch {branch}.")
174-
return result.stdout.decode("utf-8").strip()
174+
return result.stdout.strip()
175175

176176

177177
def _get_demo_feature_pr_body(demo_path: Path, commit_start: str) -> str:

0 commit comments

Comments
 (0)