Skip to content

Commit d46cb75

Browse files
committed
Fix yaml warning about missing Loader argument
1 parent 3f22eca commit d46cb75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

knightos/commands/init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def execute(project_name=None, emulator=None, debugger=None, assembler=None, pla
3636
template_dir = os.path.join(os.path.dirname(__file__), "..", "templates")
3737
try:
3838
with open(os.path.join(template_dir, template, template + ".yaml")) as f:
39-
template_yaml = yaml.load(f.read())
39+
template_yaml = yaml.load(f.read(), Loader=yaml.SafeLoader)
4040
except OSError as e:
4141
print("Template '" + template + "' not found. Stopping.")
4242
exit(1)

0 commit comments

Comments
 (0)