diff options
author | Jeff Kyllo <jkyllo-github@echospiral.com> | 2016-08-01 13:27:16 +0100 |
---|---|---|
committer | Jeff Kyllo <jkyllo-github@echospiral.com> | 2016-08-01 13:27:16 +0100 |
commit | cc048286a1dec5ecf639991a3964018c5b6d0b1f (patch) | |
tree | 4af8ff4b042337286d878a687ea96741df249592 /src/saml2/sigver.py | |
parent | 96170033ecf95aa86d3421f3f2b55233fdab7548 (diff) | |
download | pysaml2-cc048286a1dec5ecf639991a3964018c5b6d0b1f.tar.gz |
Fixes xmlsec output line parsing on CRLF platforms (e.g. Windows).
Diffstat (limited to 'src/saml2/sigver.py')
-rw-r--r-- | src/saml2/sigver.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saml2/sigver.py b/src/saml2/sigver.py index 30be593e..095a79c8 100644 --- a/src/saml2/sigver.py +++ b/src/saml2/sigver.py @@ -586,7 +586,7 @@ def parse_xmlsec_output(output): :param output: The output from Popen :return: A boolean; True if the command was a success otherwise False """ - for line in output.split("\n"): + for line in output.splitlines(): if line == "OK": return True elif line == "FAIL": |