File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
opengrok-tools/src/main/python/opengrok_tools/utils Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 18
18
#
19
19
20
20
#
21
- # Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
21
+ # Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
22
22
#
23
23
24
24
import logging
25
25
import json
26
26
import yaml
27
27
import sys
28
28
29
- # The following is to make the json parsing work on Python 3.4.
29
+ # The following is to make the JSON parsing work on Python 3.4.
30
30
try :
31
31
from json .decoder import JSONDecodeError
32
32
except ImportError :
@@ -58,7 +58,7 @@ def read_config(logger, inputfile):
58
58
59
59
try :
60
60
logger .debug ("trying YAML" )
61
- cfg = yaml .load (data )
61
+ cfg = yaml .safe_load (data )
62
62
except AttributeError :
63
63
# Not a valid YAML file.
64
64
logger .debug ("got exception {}" .format (sys .exc_info ()[0 ]))
You can’t perform that action at this time.
0 commit comments