Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 687292
Collapse All | Expand All

(-)a/python/plugins/processing/algs/help/__init__.py (-1 / +1 lines)
Lines 43-49 def loadShortHelp(): Link Here
43
            with codecs.open(filename, encoding='utf-8') as stream:
43
            with codecs.open(filename, encoding='utf-8') as stream:
44
                with warnings.catch_warnings():
44
                with warnings.catch_warnings():
45
                    warnings.filterwarnings("ignore", category=DeprecationWarning)
45
                    warnings.filterwarnings("ignore", category=DeprecationWarning)
46
                    for k, v in yaml.load(stream).items():
46
                    for k, v in yaml.safe_load(stream).items():
47
                        if v is None:
47
                        if v is None:
48
                            continue
48
                            continue
49
                        h[k] = QCoreApplication.translate("{}Algorithm".format(f[:-5].upper()), v)
49
                        h[k] = QCoreApplication.translate("{}Algorithm".format(f[:-5].upper()), v)
(-)a/python/plugins/processing/tests/AlgorithmsTestBase.py (-1 / +1 lines)
Lines 72-78 class AlgorithmsTest(object): Link Here
72
        This is the main test function. All others will be executed based on the definitions in testdata/algorithm_tests.yaml
72
        This is the main test function. All others will be executed based on the definitions in testdata/algorithm_tests.yaml
73
        """
73
        """
74
        with open(os.path.join(processingTestDataPath(), self.test_definition_file()), 'r') as stream:
74
        with open(os.path.join(processingTestDataPath(), self.test_definition_file()), 'r') as stream:
75
            algorithm_tests = yaml.load(stream)
75
            algorithm_tests = yaml.safe_load(stream)
76
76
77
        if 'tests' in algorithm_tests and algorithm_tests['tests'] is not None:
77
        if 'tests' in algorithm_tests and algorithm_tests['tests'] is not None:
78
            for idx, algtest in enumerate(algorithm_tests['tests']):
78
            for idx, algtest in enumerate(algorithm_tests['tests']):

Return to bug 687292