summaryrefslogtreecommitdiff
path: root/src/saml2/pack.py
diff options
context:
space:
mode:
authorClint Byrum <clint@fewbar.com>2015-05-15 10:52:33 -0700
committerClint Byrum <clint@fewbar.com>2015-05-15 11:52:15 -0700
commit99911f6c4c7d51071f70709e55fabcd2e6853284 (patch)
tree9ae82d0d6c11e05bd9bd152c94993d21f744b252 /src/saml2/pack.py
parent4ef44631df5426e0b4808b1c79b51a37eb026a76 (diff)
downloadpysaml2-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/pack.py')
-rw-r--r--src/saml2/pack.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/saml2/pack.py b/src/saml2/pack.py
index 40481cd3..e73dc309 100644
--- a/src/saml2/pack.py
+++ b/src/saml2/pack.py
@@ -208,11 +208,11 @@ def parse_soap_enveloped_saml(text, body_class, header_class=None):
envelope = ElementTree.fromstring(text)
assert envelope.tag == '{%s}Envelope' % NAMESPACE
- #print len(envelope)
+ #print(len(envelope))
body = None
header = {}
for part in envelope:
- #print ">",part.tag
+ #print(">",part.tag)
if part.tag == '{%s}Body' % NAMESPACE:
for sub in part:
try:
@@ -223,11 +223,11 @@ def parse_soap_enveloped_saml(text, body_class, header_class=None):
elif part.tag == '{%s}Header' % NAMESPACE:
if not header_class:
raise Exception("Header where I didn't expect one")
- #print "--- HEADER ---"
+ #print("--- HEADER ---")
for sub in part:
- #print ">>",sub.tag
+ #print(">>",sub.tag)
for klass in header_class:
- #print "?{%s}%s" % (klass.c_namespace,klass.c_tag)
+ #print("?{%s}%s" % (klass.c_namespace,klass.c_tag))
if sub.tag == "{%s}%s" % (klass.c_namespace, klass.c_tag):
header[sub.tag] = \
saml2.create_class_from_element_tree(klass, sub)