From b9c37e4fd2aa786e3a9b148d21854b75622c229f Mon Sep 17 00:00:00 2001 From: Salamandar Date: Wed, 2 May 2018 11:35:29 +0200 Subject: [PATCH] Add set instead of list for used features lits --- mesonbuild/interpreterbase.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mesonbuild/interpreterbase.py b/mesonbuild/interpreterbase.py index 47e8e9a09..8ae048918 100644 --- a/mesonbuild/interpreterbase.py +++ b/mesonbuild/interpreterbase.py @@ -135,8 +135,8 @@ class FeatureNew: def add_called_feature(self): if self.feature_version not in self.feature_versions: - self.feature_versions[self.feature_version] = [] - self.feature_versions[self.feature_version].append(self.feature_name) + self.feature_versions[self.feature_version] = set() + self.feature_versions[self.feature_version].add(self.feature_name) def called_features_report(): fv = FeatureNew.feature_versions @@ -173,8 +173,8 @@ class FeatureDeprecated: def add_called_feature(self): if self.feature_version not in self.feature_versions: - self.feature_versions[self.feature_version] = [] - self.feature_versions[self.feature_version].append(self.feature_name) + self.feature_versions[self.feature_version] = set() + self.feature_versions[self.feature_version].add(self.feature_name) def called_features_report(): fv = FeatureDeprecated.feature_versions