This is an automated email from the ASF dual-hosted git repository. not-in-ldap pushed a commit to branch aevri/win32_minimal_seemstowork_20190829 in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit e160f0918cc5793e0bf38aee1d5119373ef65daf Author: Angelos Evripiotis <[email protected]> AuthorDate: Tue Jul 9 17:35:04 2019 +0100 WIP: _plugincontext, lint fixes --- src/buildstream/_plugincontext.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/buildstream/_plugincontext.py b/src/buildstream/_plugincontext.py index fa07e7b..60d2475 100644 --- a/src/buildstream/_plugincontext.py +++ b/src/buildstream/_plugincontext.py @@ -98,7 +98,10 @@ class PluginContext(): def _get_local_plugin_source(self, path): if ('local', path) not in self._alternate_sources: # key by a tuple to avoid collision - source = self._plugin_base.make_plugin_source(searchpath=[path], identifier='local_plugin-' + path + '-' + self._identifier) + source = self._plugin_base.make_plugin_source( + searchpath=[path], + identifier='local_plugin-' + path + '-' + self._identifier, + ) # Ensure that sources never get garbage collected, # as they'll take the plugins with them. self._alternate_sources[('local', path)] = source @@ -139,7 +142,10 @@ class PluginContext(): # The plugin didn't have an accompanying YAML file defaults = None - source = self._plugin_base.make_plugin_source(searchpath=[os.path.dirname(location)], identifier='pip_plugin-' + self._identifier) + source = self._plugin_base.make_plugin_source( + searchpath=[os.path.dirname(location)], + identifier='pip_plugin-' + self._identifier, + ) self._alternate_sources[('pip', package_name)] = source else:
