Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 578528 Details for
Bug 687292
sci-geosciences/qgis-3.4.7: using the yaml.load()
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
qgis-3.4.7-yaml-load.patch
qgis-3.4.7-yaml-load.patch (text/plain), 1.58 KB, created by
Marco Genasci
on 2019-06-03 17:05:33 UTC
(
hide
)
Description:
qgis-3.4.7-yaml-load.patch
Filename:
MIME Type:
Creator:
Marco Genasci
Created:
2019-06-03 17:05:33 UTC
Size:
1.58 KB
patch
obsolete
>diff --git a/python/plugins/processing/algs/help/__init__.py b/python/plugins/processing/algs/help/__init__.py >index 08a14085..166de786 100644 >--- a/python/plugins/processing/algs/help/__init__.py >+++ b/python/plugins/processing/algs/help/__init__.py >@@ -43,7 +43,7 @@ def loadShortHelp(): > with codecs.open(filename, encoding='utf-8') as stream: > with warnings.catch_warnings(): > warnings.filterwarnings("ignore", category=DeprecationWarning) >- for k, v in yaml.load(stream).items(): >+ for k, v in yaml.safe_load(stream).items(): > if v is None: > continue > h[k] = QCoreApplication.translate("{}Algorithm".format(f[:-5].upper()), v) >diff --git a/python/plugins/processing/tests/AlgorithmsTestBase.py b/python/plugins/processing/tests/AlgorithmsTestBase.py >index 2845ac84..ac202983 100644 >--- a/python/plugins/processing/tests/AlgorithmsTestBase.py >+++ b/python/plugins/processing/tests/AlgorithmsTestBase.py >@@ -72,7 +72,7 @@ class AlgorithmsTest(object): > This is the main test function. All others will be executed based on the definitions in testdata/algorithm_tests.yaml > """ > with open(os.path.join(processingTestDataPath(), self.test_definition_file()), 'r') as stream: >- algorithm_tests = yaml.load(stream) >+ algorithm_tests = yaml.safe_load(stream) > > if 'tests' in algorithm_tests and algorithm_tests['tests'] is not None: > for idx, algtest in enumerate(algorithm_tests['tests']):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 687292
: 578528