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/_elementfactory.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/_elementfactory.py')
-rw-r--r-- | buildstream/_elementfactory.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_elementfactory.py b/buildstream/_elementfactory.py index 55725a29f..cd320f6c7 100644 --- a/buildstream/_elementfactory.py +++ b/buildstream/_elementfactory.py @@ -19,7 +19,7 @@ # Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> from . import _site -from ._plugincontext import _PluginContext +from ._plugincontext import PluginContext from .element import Element # A ElementFactory creates Element instances @@ -29,7 +29,7 @@ from .element import Element # plugin_base (PluginBase): The main PluginBase object to work with # searchpath (list): A list of external paths to search for Element plugins # -class _ElementFactory(_PluginContext): +class ElementFactory(PluginContext): def __init__(self, plugin_base, searchpath=None): |