# | you may not use this file except in compliance with the License. # | You may obtain a copy of the License at # | # | http://www.apache.org/licenses/LICENSE-2.0 # | # | Unless required by applicable law or agreed to in writing, software # | distributed under the License is distributed on an "AS IS" BASIS, # | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # | See the License for the specific language governing permissions and # | limitations under the License. import os, sys, copy, difflib, logging from hpfwk.hpf_exceptions import ExceptionCollector, NestedException, clear_current_exception from hpfwk.hpf_logging import init_hpf_logging init_hpf_logging() # needed for additional logging levels class PluginError(NestedException): pass def create_plugin_file(package, selector): cls_dict = {} def _fill_cls_dict(cls): # return list of dicts that were filled with cls information if cls == object: return [cls_dict] else: result = []
# | You may obtain a copy of the License at # | # | http://www.apache.org/licenses/LICENSE-2.0 # | # | Unless required by applicable law or agreed to in writing, software # | distributed under the License is distributed on an "AS IS" BASIS, # | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # | See the License for the specific language governing permissions and # | limitations under the License. import os, sys, copy, difflib, logging from hpfwk.hpf_exceptions import ExceptionCollector, NestedException, clear_current_exception from hpfwk.hpf_logging import init_hpf_logging init_hpf_logging() # needed for additional logging levels class PluginError(NestedException): pass def create_plugin_file(package, selector): cls_dict = {} def _fill_cls_dict(cls): # return list of dicts that were filled with cls information if cls == object: return [cls_dict] else: result = []