Skip to content

Commit

Permalink
bump yaml and switch to safe load (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoud committed Aug 22, 2023
1 parent c97b71a commit 3431501
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion glom/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def mw_handle_target(target_text, target_format):
elif target_format in ('yaml', 'yml'):
try:
import yaml
load_func = yaml.load
load_func = yaml.safe_load
except ImportError:
raise UsageError('No YAML package found. To process yaml files, run: pip install PyYAML')
elif target_format == 'python':
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ face<22.0.0
pytest==4.6.11;python_version<'3.6'
pytest>=6.2.5;python_version >= '3.6'
tox==3.7.0
PyYAML==5.4.1
PyYAML==6.0.1

0 comments on commit 3431501

Please sign in to comment.