From b0ecc9b19b5f47aba447bdeba0349040c742a1e8 Mon Sep 17 00:00:00 2001 From: Shinwell Hu Date: Mon, 6 Jul 2020 12:31:57 +0000 Subject: [PATCH 1/2] compability workaround --- advisors/check_upstream.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/advisors/check_upstream.py b/advisors/check_upstream.py index f48fd764..e2882178 100755 --- a/advisors/check_upstream.py +++ b/advisors/check_upstream.py @@ -51,6 +51,12 @@ def clean_tags(tags, info): separator_regex = re.compile(info["separator"]) result_list = [separator_regex.sub(".", x) for x in result_list] + # Xinwei used to mis-spell 'separator'. + # Followings are kept for compability until all yaml files are fixed. + if info.get("seperator", ".") != "." and info.get("seperator", ".") is not None: + separator_regex = re.compile(info["seperator"]) + result_list = [separator_regex.sub(".", x) for x in result_list] + result_list = [x for x in result_list if x[0].isdigit()] return result_list -- Gitee From 18d669717ad2b1e4e335999a9ff9f8c8d696cd54 Mon Sep 17 00:00:00 2001 From: Shinwell Hu Date: Mon, 6 Jul 2020 12:34:03 +0000 Subject: [PATCH 2/2] misspell --- advisors/check_upstream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advisors/check_upstream.py b/advisors/check_upstream.py index e2882178..954099bc 100755 --- a/advisors/check_upstream.py +++ b/advisors/check_upstream.py @@ -52,7 +52,7 @@ def clean_tags(tags, info): result_list = [separator_regex.sub(".", x) for x in result_list] # Xinwei used to mis-spell 'separator'. - # Followings are kept for compability until all yaml files are fixed. + # Followings are kept for compatability until all yaml files are fixed. if info.get("seperator", ".") != "." and info.get("seperator", ".") is not None: separator_regex = re.compile(info["seperator"]) result_list = [separator_regex.sub(".", x) for x in result_list] -- Gitee