diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-11-15 18:19:10 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-11-15 18:19:10 +0900 |
commit | 7be35048a26dde2e717b88d8e531f31f345eb791 (patch) | |
tree | 429a150d325fd4c7096fb253fc5f3be80930faa8 /buildstream/_plugincontext.py | |
parent | 14e8161cf9af49ad49a2d3623913175cbe660dc1 (diff) | |
download | buildstream-7be35048a26dde2e717b88d8e531f31f345eb791.tar.gz |
Principle of least underscores
PluginContext, ElementFactory and SourceFactory reside in
entirely private modules, as such they do not need a leading
underscore to indicate that they are private.
This makes the code nicer to read without causing private
things to be considered public.
Diffstat (limited to 'buildstream/_plugincontext.py')
-rw-r--r-- | buildstream/_plugincontext.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_plugincontext.py b/buildstream/_plugincontext.py index 2132a9e08..cc6e75db8 100644 --- a/buildstream/_plugincontext.py +++ b/buildstream/_plugincontext.py @@ -35,7 +35,7 @@ from .exceptions import PluginError # a given BuildStream project are isolated to their respective # Pipelines. # -class _PluginContext(): +class PluginContext(): def __init__(self, plugin_base, base_type, searchpath=None): |