We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6678613 commit 3aa4727Copy full SHA for 3aa4727
lambda_tools/configuration.py
@@ -329,7 +329,7 @@ def upgrade(data):
329
330
def load(filename):
331
with open(filename) as f:
332
- raw_data = yaml.load(f)
+ raw_data = yaml.safe_load(f)
333
data = upgrade(raw_data)
334
config = mapper.parse(Configuration, data)
335
config.root = os.path.dirname(filename)
tests/test_configuration.py
@@ -11,7 +11,7 @@
11
def load_yaml(filename):
12
testfile = os.path.join(os.path.dirname(__file__), filename)
13
with open(testfile) as f:
14
- return yaml.load(f)
+ return yaml.safe_load(f)
15
16
class TestSchema(unittest.TestCase):
17
0 commit comments