diff options
author | James Ennis <james.ennis@codethink.com> | 2018-02-14 17:02:00 +0000 |
---|---|---|
committer | James Ennis <james.ennis@codethink.com> | 2018-03-14 14:10:26 +0000 |
commit | 81833add3730eb3f8b489e9f5cc34df7617373fc (patch) | |
tree | 8072db8db7bff7befedf6fa09de506d7e0ba3fd3 /buildstream/_profile.py | |
parent | 0394d67d26035234553c506539b1bd790cddec1d (diff) | |
download | buildstream-81833add3730eb3f8b489e9f5cc34df7617373fc.tar.gz |
pylint - dealt with superfluous-parens warning
Diffstat (limited to 'buildstream/_profile.py')
-rw-r--r-- | buildstream/_profile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_profile.py b/buildstream/_profile.py index a9e425c89..7dd7fbb67 100644 --- a/buildstream/_profile.py +++ b/buildstream/_profile.py @@ -97,7 +97,7 @@ def profile_start(topic, key, message=None): # Start profiling and hold on to the key profile = Profile(topic, key, message) - assert(active_profiles.get(profile.key) is None) + assert active_profiles.get(profile.key) is None active_profiles[profile.key] = profile @@ -116,7 +116,7 @@ def profile_end(topic, key): topic_key = topic + '-' + key profile = active_profiles.get(topic_key) - assert(profile) + assert profile profile.end() del active_profiles[topic_key] |