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/saml2test | |
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/saml2test')
-rw-r--r-- | src/saml2test/tool.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/saml2test/tool.py b/src/saml2test/tool.py index 3292b631..6071408a 100644 --- a/src/saml2test/tool.py +++ b/src/saml2test/tool.py @@ -144,7 +144,7 @@ class Conversation(object): try: logger.info("GET %s" % url) _response = self.client.send(url, "GET") - except Exception, err: + except Exception as err: raise FatalError("%s" % err) content = _response.text @@ -224,7 +224,7 @@ class Conversation(object): raise OperationError() except (FatalError, InteractionNeeded, OperationError): raise - except Exception, err: + except Exception as err: self.err_check("exception", err, False) self.last_response = _response @@ -300,7 +300,7 @@ class Conversation(object): break except (FatalError, OperationError): raise - except Exception, err: + except Exception as err: #self.err_check("exception", err) raise |