zopefoundation / zope.exceptions

exceptions and implementations which are general purpose
https://zopeexceptions.readthedocs.io/
Other
0 stars 6 forks source link

Adapt to python 3.10 SyntaxError messages #19

Closed arthurzam closed 3 years ago

arthurzam commented 3 years ago

SyntaxError messages are becoming more verbose in python 3.10. See here for more info. As a result, one test fails on python 3.10.

This patch was tested on python 3.7, 3.8, 3.9, 3.10, pypy3 - all passes with it. If it is relavent, this patch will fail on python < 3.1.

icemac commented 3 years ago

Thank you for your contribution. Currently zope.exceptions still has to support Python 2.7.

icemac commented 3 years ago

Thank you for this PR. 😀