summaryrefslogtreecommitdiff
path: root/src/saml2test/interaction.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/saml2test/interaction.py')
-rw-r--r--src/saml2test/interaction.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/saml2test/interaction.py b/src/saml2test/interaction.py
index ddfbeacb..941399e6 100644
--- a/src/saml2test/interaction.py
+++ b/src/saml2test/interaction.py
@@ -102,7 +102,7 @@ class Interaction(object):
self.who = "Form process"
def pick_interaction(self, _base="", content="", req=None):
- logger.info("pick_interaction baseurl: %s" % _base)
+ logger.info("pick_interaction baseurl: %s", _base)
unic = content
if content:
_bs = BeautifulSoup(content)
@@ -113,11 +113,11 @@ class Interaction(object):
_match = 0
for attr, val in interaction["matches"].items():
if attr == "url":
- logger.info("matching baseurl against: %s" % val)
+ logger.info("matching baseurl against: %s", val)
if val == _base:
_match += 1
elif attr == "title":
- logger.info("matching '%s' against title" % val)
+ logger.info("matching '%s' against title", val)
if _bs is None:
break
if _bs.title is None:
@@ -140,7 +140,7 @@ class Interaction(object):
_match += 1
if _match == len(interaction["matches"]):
- logger.info("Matched: %s" % interaction["matches"])
+ logger.info("Matched: %s", interaction["matches"])
return interaction
raise InteractionNeeded("No interaction matched")
@@ -319,7 +319,7 @@ class Interaction(object):
else:
url = path
- logger.info("GET %s" % url)
+ logger.info("GET %s", url)
return self.httpc.send(url, "GET")
#return resp, ""
@@ -390,8 +390,8 @@ class Action(object):
_args.update({"location": location, "features": features, "conv": conv})
- logger.info("<-- FUNCTION: %s" % function.__name__)
- logger.info("<-- ARGS: %s" % _args)
+ logger.info("<-- FUNCTION: %s", function.__name__)
+ logger.info("<-- ARGS: %s", _args)
result = function(response, **_args)
self.post_op(result, conv, _args)