From e126ff2439439668e7a48aa06df9d8d0e66963fb Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Sat, 30 Jul 2022 01:20:24 +0530 Subject: [PATCH] fix: Use subscript instead of method for regex This is another dumb attempt to trigger a release because it doesn't get triggered without PRs linked or even if they're refactors! --- bench/utils/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/utils/app.py b/bench/utils/app.py index 51ef2c6a..84b6df18 100644 --- a/bench/utils/app.py +++ b/bench/utils/app.py @@ -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))