diff options
author | Benjamin Schubert <bschubert15@bloomberg.net> | 2019-12-02 11:02:23 +0000 |
---|---|---|
committer | Benjamin Schubert <bschubert15@bloomberg.net> | 2019-12-02 11:02:23 +0000 |
commit | 069b110c866ecfd652a041d735ca6d261b8d41ba (patch) | |
tree | 8971bdb7d0c26ce7e5d2da65e705b1046c666603 /src/buildstream/_profile.py | |
parent | 05aaf3eadff2981fe3c16e6c3a808c37f0ca1187 (diff) | |
download | buildstream-069b110c866ecfd652a041d735ca6d261b8d41ba.tar.gz |
lint: Remove unnecessary list comprehensions
Newer version of pylint detect when a comprehension would not be needed.
Let's remove all the ones that are indeed extraneous
Diffstat (limited to 'src/buildstream/_profile.py')
-rw-r--r-- | src/buildstream/_profile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_profile.py b/src/buildstream/_profile.py index fdde04ab7..b3182b630 100644 --- a/src/buildstream/_profile.py +++ b/src/buildstream/_profile.py @@ -118,7 +118,7 @@ class _Profiler: self._valid_topics = False if settings: - self.enabled_topics = {topic for topic in settings.split(":")} + self.enabled_topics = set(settings.split(":")) @contextlib.contextmanager def profile(self, topic, key, message=None): |