Skip to content

Commit

Permalink
fix: Use subscript instead of method for regex
Browse files Browse the repository at this point in the history
This is another dumb attempt to trigger a release because it doesn't get
triggered without PRs linked or even if they're refactors!
  • Loading branch information
gavindsouza committed Jul 29, 2022
1 parent 66d41e5 commit e126ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/utils/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def get_app_name(bench_path: str, folder_name: str) -> str:
if not app_name:
# retrieve app name from setup.py as fallback
with open(setup_py_path, "rb") as f:
app_name = re.search(r'name\s*=\s*[\'"](.*)[\'"]', f.read().decode("utf-8")).group(1)
app_name = re.search(r'name\s*=\s*[\'"](.*)[\'"]', f.read().decode("utf-8"))[1]

if app_name and folder_name != app_name:
os.rename(os.path.join(apps_path, folder_name), os.path.join(apps_path, app_name))
Expand Down

0 comments on commit e126ff2

Please sign in to comment.