diff options
author | Jeonghoon Park <jh1979.park@samsung.com> | 2021-04-29 16:50:14 +0900 |
---|---|---|
committer | 박정훈/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 <jh1979.park@samsung.com> | 2021-05-04 09:41:45 +0900 |
commit | 80fab6d56c1ca85225f061c40c86a3fc805b2047 (patch) | |
tree | e2ffc528707fb9da1ae99fd00414ef6e2c3b9b2c | |
parent | a0dea6f6ed7181a4a5ec1e420050629549bfdf53 (diff) | |
download | tic-core-80fab6d56c1ca85225f061c40c86a3fc805b2047.tar.gz tic-core-80fab6d56c1ca85225f061c40c86a3fc805b2047.tar.bz2 tic-core-80fab6d56c1ca85225f061c40c86a3fc805b2047.zip |
change method type from class to static method
-rw-r--r-- | tic/parser/recipe_parser.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tic/parser/recipe_parser.py b/tic/parser/recipe_parser.py index 84e5773..75ded1b 100644 --- a/tic/parser/recipe_parser.py +++ b/tic/parser/recipe_parser.py @@ -142,8 +142,8 @@ class DefaultRecipe(object): recipe[field] = [] return recipe - @classmethod - def get_default_parameter(cls): + @staticmethod + def get_default_parameter(): return [dict(url=DEFAULT_RECIPE_NAME, type='recipe')] default_recipe = DefaultRecipe() @@ -270,8 +270,8 @@ class RecipeParser(object): repos.append(data) return repos - @classmethod - def _rename_repository(cls, repo_dict, repo_name): + @staticmethod + def _rename_repository(repo_dict, repo_name): number = repo_dict.get(repo_name) new_name = ''.join([repo_name, '_', str(number)]) while new_name in repo_dict: |