diff options
author | tmartins <thigm85@gmail.com> | 2020-07-07 10:28:49 +0200 |
---|---|---|
committer | tmartins <thigm85@gmail.com> | 2020-07-07 10:28:49 +0200 |
commit | b7c5ab66c1ef1fb38d321848627e66954ac5c64a (patch) | |
tree | 75d12af936135dbc7ae2a9b4c6f7d60c88c21225 /python | |
parent | ab41b91f89a450e657bd1a14592bb9c17333fbfb (diff) |
remove unnecessary update
Diffstat (limited to 'python')
-rw-r--r-- | python/vespa/vespa/package.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/vespa/vespa/package.py b/python/vespa/vespa/package.py index 48c21ea91ed..a59177a7028 100644 --- a/python/vespa/vespa/package.py +++ b/python/vespa/vespa/package.py @@ -214,7 +214,7 @@ class Schema(ToJson, FromJson["Schema"]): :param rank_profile: `RankProfile` to be added. :return: None. """ - self.rank_profiles.update({rank_profile.name: rank_profile}) + self.rank_profiles[rank_profile.name] = rank_profile @staticmethod def from_dict(mapping: Mapping) -> "Schema": @@ -373,7 +373,9 @@ class ApplicationPackage(ToJson, FromJson["ApplicationPackage"]): ) def create_application_package_files(self, dir_path): - Path(os.path.join(dir_path, "application/schemas")).mkdir(parents=True, exist_ok=True) + Path(os.path.join(dir_path, "application/schemas")).mkdir( + parents=True, exist_ok=True + ) with open( os.path.join( dir_path, "application/schemas/{}.sd".format(self.schema.name) |