diff options
author | Clint Byrum <clint@fewbar.com> | 2015-05-15 10:52:33 -0700 |
---|---|---|
committer | Clint Byrum <clint@fewbar.com> | 2015-05-15 11:52:15 -0700 |
commit | 99911f6c4c7d51071f70709e55fabcd2e6853284 (patch) | |
tree | 9ae82d0d6c11e05bd9bd152c94993d21f744b252 /src/saml2/soap.py | |
parent | 4ef44631df5426e0b4808b1c79b51a37eb026a76 (diff) | |
download | pysaml2-99911f6c4c7d51071f70709e55fabcd2e6853284.tar.gz |
Fix python3 syntax errors
Retains python2.7 compatibility for all files. Fixes only syntax errors,
tests still fail on python3 for various reasons.
Diffstat (limited to 'src/saml2/soap.py')
-rw-r--r-- | src/saml2/soap.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saml2/soap.py b/src/saml2/soap.py index f056a92d..c1be544f 100644 --- a/src/saml2/soap.py +++ b/src/saml2/soap.py @@ -184,7 +184,7 @@ def class_instances_from_soap_enveloped_saml_thingies(text, modules): """ try: envelope = ElementTree.fromstring(text) - except Exception, exc: + except Exception as exc: raise XmlParseError("%s" % exc) assert envelope.tag == '{%s}Envelope' % soapenv.NAMESPACE @@ -210,7 +210,7 @@ def open_soap_envelope(text): """ try: envelope = ElementTree.fromstring(text) - except Exception, exc: + except Exception as exc: raise XmlParseError("%s" % exc) assert envelope.tag == '{%s}Envelope' % soapenv.NAMESPACE |