Skip to content

Commit

Permalink
use the recommended yaml.safe_load function
Browse files Browse the repository at this point in the history
reason: with pyyaml >= 5, the load function without Loader is deprecated.
Even if we do not use version 5 for now, we should use good practices.
https://pyyaml.org/wiki/PyYAMLDocumentation#loading-yaml
yaml/pyyaml#257
  • Loading branch information
fblackburn1 committed Apr 16, 2019
1 parent 2b8517f commit 2203177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration_tests/suite/test_password_reset.py
Expand Up @@ -36,7 +36,7 @@ def test_password_reset(self, bar, foo):

def _update_password_from_email(self, raw_email, password):
headers, body = raw_email.split('\n\n', 1)
email_fields = yaml.load(body)
email_fields = yaml.safe_load(body)

token = email_fields['token']
user_uuid = email_fields['user_uuid']
Expand Down

0 comments on commit 2203177

Please sign in to comment.