Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit 529a5a7

Browse files
authored
Merge pull request #4 from snarfed/yaml_safe_load
use PyYAML's SafeLoader explicitly
2 parents 6f72a08 + b450133 commit 529a5a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clrypt/encdir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def read_file(self, group, name, ext='yaml'):
3131
def read_yaml_file(self, group, name, ext='yaml'):
3232
"""Read the named file as decrypted YAML."""
3333
import yaml
34-
return yaml.load(self.read_file(group, name, ext=ext))
34+
return yaml.safe_load(self.read_file(group, name, ext=ext))
3535

3636
def write_file(self, in_fp, group, name, ext='yaml'):
3737
"""Encrypt and write the contents of a file-like object to the named file."""

0 commit comments

Comments
 (0)