Pylons / pyramid_simpleform

Bindings to help integrate formencode with Pyramid.
Other
15 stars 25 forks source link

SyntaxError while using the library on Python 3.10.4 #39

Open sachingorade opened 1 year ago

sachingorade commented 1 year ago

Hi there, I am getting following error with Python 3.10.4 version -

  File "D:\Projects\Github\proj\pyramid-101\venv\lib\site-packages\pyramid_simpleform\__init__.py", line 175
    except Invalid, e:
           ^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized

From this post, I think this is because this syntax in pyramid_simpleform\__init__.py is no longer supported by newer version of Python -

except Invalid, e:

Is there any plan to upgrade the package to support newer version of Python?

stevepiercy commented 1 year ago

You are welcome to submit a pull request to fulfill your requirements. The maintainers would be more likely to take action when a contributor does the work, than if they were to do it themselves.

Assuming your PR gets merged, then ping them and ask for a release to PyPI. You can see the list of maintainers here: https://pypi.org/project/pyramid_simpleform/