From edecd490576e5bcfd3857f33c42b576991a8e72d Mon Sep 17 00:00:00 2001 From: "Hanzhang Zeng (Roger)" Date: Tue, 9 Apr 2019 16:59:25 -0700 Subject: [PATCH] Remove: string interpolation syntax to support Python 2.7 --- azure_functions_devops_build/repository/local_git_utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/azure_functions_devops_build/repository/local_git_utils.py b/azure_functions_devops_build/repository/local_git_utils.py index 17cb852..0e17d59 100644 --- a/azure_functions_devops_build/repository/local_git_utils.py +++ b/azure_functions_devops_build/repository/local_git_utils.py @@ -91,7 +91,11 @@ def git_push(remote_name, force=False): raise GitOperationException(message=" ".join(command)) def _sanitize_git_remote_name(organization_name, project_name, repository_name): - concatenated_remote_name = f"{organization_name}_{project_name}_{repository_name}" + concatenated_remote_name = "{organization_name}_{project_name}_{repository_name}".format( + organization_name=organization_name, + project_name=project_name, + repository_name=repository_name + ) sanitized_remote_name = re.sub(r"[^A-Za-z0-9_-]|\s", "-", concatenated_remote_name) return sanitized_remote_name