projects
/
osm
/
PLA.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use of yaml.safe_load instead of yaml_load
[osm/PLA.git]
/
osm_pla
/
config
/
config.py
diff --git
a/osm_pla/config/config.py
b/osm_pla/config/config.py
index
13ff43b
..
2fd7a8b
100644
(file)
--- a/
osm_pla/config/config.py
+++ b/
osm_pla/config/config.py
@@
-35,7
+35,7
@@
class Config:
path = "pla.yaml"
config_file = pkg_resources.resource_filename(__name__, path)
with open(config_file) as f:
path = "pla.yaml"
config_file = pkg_resources.resource_filename(__name__, path)
with open(config_file) as f:
- self.conf = yaml.load(f)
+ self.conf = yaml.
safe_
load(f)
def _read_env(self):
for env in os.environ:
def _read_env(self):
for env in os.environ: