File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
python/plugins/processing/algs/help Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 25
25
26
26
import os
27
27
import codecs
28
- import yaml
28
+ import warnings
29
+ with warnings .catch_warnings ():
30
+ warnings .filterwarnings ("ignore" , category = DeprecationWarning )
31
+ import yaml
32
+
29
33
from qgis .core import QgsSettings , Qgis
30
34
from qgis .PyQt .QtCore import QLocale , QCoreApplication
31
35
@@ -37,10 +41,12 @@ def loadShortHelp():
37
41
if f .endswith ("yaml" ):
38
42
filename = os .path .join (path , f )
39
43
with codecs .open (filename , encoding = 'utf-8' ) as stream :
40
- for k , v in yaml .load (stream ).items ():
41
- if v is None :
42
- continue
43
- h [k ] = QCoreApplication .translate ("{}Algorithm" .format (f [:- 5 ].upper ()), v )
44
+ with warnings .catch_warnings ():
45
+ warnings .filterwarnings ("ignore" , category = DeprecationWarning )
46
+ for k , v in yaml .load (stream ).items ():
47
+ if v is None :
48
+ continue
49
+ h [k ] = QCoreApplication .translate ("{}Algorithm" .format (f [:- 5 ].upper ()), v )
44
50
45
51
version = "." .join (Qgis .QGIS_VERSION .split ("." )[0 :2 ])
46
52
overrideLocale = QgsSettings ().value ('locale/overrideFlag' , False , bool )
You can’t perform that action at this time.
0 commit comments