From 99911f6c4c7d51071f70709e55fabcd2e6853284 Mon Sep 17 00:00:00 2001 From: Clint Byrum Date: Fri, 15 May 2015 10:52:33 -0700 Subject: Fix python3 syntax errors Retains python2.7 compatibility for all files. Fixes only syntax errors, tests still fail on python3 for various reasons. --- src/saml2/pack.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/saml2/pack.py') 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) -- cgit v1.2.1