summaryrefslogtreecommitdiff
path: root/buildstream/_profile.py
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.com>2018-02-14 17:02:00 +0000
committerJames Ennis <james.ennis@codethink.com>2018-03-14 14:10:26 +0000
commit81833add3730eb3f8b489e9f5cc34df7617373fc (patch)
tree8072db8db7bff7befedf6fa09de506d7e0ba3fd3 /buildstream/_profile.py
parent0394d67d26035234553c506539b1bd790cddec1d (diff)
downloadbuildstream-81833add3730eb3f8b489e9f5cc34df7617373fc.tar.gz
pylint - dealt with superfluous-parens warning
Diffstat (limited to 'buildstream/_profile.py')
-rw-r--r--buildstream/_profile.py4
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]