summaryrefslogtreecommitdiff
path: root/buildstream/plugin.py
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.com>2018-02-14 15:16:58 +0000
committerJames Ennis <james.ennis@codethink.com>2018-03-14 14:10:26 +0000
commit05fa346f9911638b272eca0b62a110b590803ab2 (patch)
treee834cef0de6d74e4b45f8ab5acb1b3d3cfcbd1ad /buildstream/plugin.py
parent1ba6167b8fc86964bfb0f12f266eb25b8233e194 (diff)
downloadbuildstream-05fa346f9911638b272eca0b62a110b590803ab2.tar.gz
pylint - dealt with global-statement warning
Diffstat (limited to 'buildstream/plugin.py')
-rw-r--r--buildstream/plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/plugin.py b/buildstream/plugin.py
index 353f13cc1..ad59da684 100644
--- a/buildstream/plugin.py
+++ b/buildstream/plugin.py
@@ -672,7 +672,7 @@ def _plugin_lookup(unique_id):
# No need for unregister, WeakValueDictionary() will remove entries
# in itself when the referenced plugins are garbage collected.
def _plugin_register(plugin):
- global __PLUGINS_UNIQUE_ID
+ global __PLUGINS_UNIQUE_ID # pylint: disable=global-statement
__PLUGINS_UNIQUE_ID += 1
__PLUGINS_TABLE[__PLUGINS_UNIQUE_ID] = plugin
return __PLUGINS_UNIQUE_ID