Commits

Jurko Gospodnetić  committed 9334870

HTTPMessage class related changes needed for Python 3 support.

  • Participants
  • Parent commits 0b8276c
  • Branches Python 3 support

Comments (0)

Files changed (1)

File suds/transport/http.py

             log.debug('sending:\n%s', request)
             fp = self.u2open(u2request)
             self.getcookies(fp, u2request)
-            result = Reply(200, fp.headers.dict, fp.read())
+            headers = (fp.headers.dict if sys.version_info < (3, 0) 
+                       else fp.headers)
+            result = Reply(200, headers, fp.read())
             log.debug('received:\n%s', result)
         except urllib2.HTTPError, e:
             if e.code in (202,204):