kakaka88 / pysimplesoap

Automatically exported from code.google.com/p/pysimplesoap
0 stars 0 forks source link

Python 3 #173

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Instance SOAPClient in Python3.4
2. get AttributeError Exception

What is the expected output? What do you see instead?
Problem with "iteritems()" in Python 3.4, should be "items()"

File 
"/Users/kaiobrito/nic/virtualenvs/faca-parte/lib/python3.4/site-packages/pysimpl
esoap/client.py", line 173, in __init__
    self.services = wsdl and self.wsdl_parse(wsdl, cache=cache)
  File "/Users/kaiobrito/nic/virtualenvs/faca-parte/lib/python3.4/site-packages/pysimplesoap/client.py", line 836, in wsdl_parse
    services = self._xml_tree_to_services(wsdl, cache, force_download)
  File "/Users/kaiobrito/nic/virtualenvs/faca-parte/lib/python3.4/site-packages/pysimplesoap/client.py", line 757, in _xml_tree_to_services
    for name, msg in op['fault_msgs'].iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'

What version of the product are you using? On what operating system?
1.16

Please attach the related WSDL (if any), a small code fragment to reproduce
and provide any additional information below.

SoapClient(wsdl='https://psp.cobredireto.com.br/bpag2Sandbox/services/BPagWS?wsd
l',trace=False)

Original issue reported on code.google.com by kaio.a7x@gmail.com on 4 Feb 2015 at 1:42

GoogleCodeExporter commented 8 years ago
This was fixed in the latest master trunk.

Original comment by reingart@gmail.com on 14 Jun 2015 at 10:39