suds-community / suds

Suds is a lightweight SOAP python client for consuming Web Services. A community fork of the jurko fork.
https://suds.readthedocs.io/
GNU Lesser General Public License v3.0
172 stars 54 forks source link

update #19

Closed RituRajSingh878 closed 5 years ago

RituRajSingh878 commented 5 years ago

change line except Exception, e: to except Exception as e: related to #18

phillbaker commented 5 years ago

Interesting! I wonder how this hasn't been an issue before? Are you seeing exceptions when using the current code?

Edit: Looks like a python version thing: https://stackoverflow.com/a/2535770

phillbaker commented 5 years ago

Interesting, looks like the build process strips these out, which is why we're not having issues:

https://github.com/suds-community/suds/blob/6fb0a829337b5037a66c20aae6f89b41acd77e40/setup.py#L584

We don't need to support any of the older versions of python which don't support the as syntax.

Would you mind also changing the instances of this in:

In tests, it appears as except.*, f:.