use yaml.safe_load()

getting new warnings
see https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
This commit is contained in:
Noah Levitt 2019-03-18 15:49:44 -07:00
parent 6f5f090c33
commit d729c8d0d5
4 changed files with 7 additions and 6 deletions

View file

@ -151,7 +151,7 @@ def test_robots_connection_failure():
assert brozzler.is_permitted_by_robots(site, url)
def test_scoping():
test_scope = yaml.load('''
test_scope = yaml.safe_load('''
max_hops: 100
accepts:
- url_match: REGEX_MATCH