Changing yaml.load to yaml.safe_load per:
https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecationpull/12/head
parent
9d86158a73
commit
60ecd3c2a3
|
@ -1,2 +1,3 @@
|
|||
dist/*
|
||||
CSR_Generator.egg-info/*
|
||||
*.log
|
||||
|
|
|
@ -234,7 +234,7 @@ class Certificate:
|
|||
"""Parse YAML file and return object generated
|
||||
"""
|
||||
with open(yaml_file, 'r') as stream:
|
||||
cfg = yaml.load(stream)
|
||||
cfg = yaml.safe_load(stream)
|
||||
return cfg
|
||||
|
||||
def generateKey(self, type, bits):
|
||||
|
|
Loading…
Reference in New Issue