Opened 2 years ago
Closed 19 months ago
#65393 closed defect (fixed)
nonpareil @0.79: SyntaxError: multiple exception types must be parenthesized
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | krischik (Martin Krischik) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.2 |
Keywords: | Cc: | ||
Port: | nonpareil |
Description
After updating scons to version 4.3.0 using python310, nonpareil fails to build:
scons: Reading SConscript files ... File "/opt/local/var/macports/build/.../nonpareil/work/nonpareil-0.79/SConstruct", line 123 except OSError, (errnum, strerror): ^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: multiple exception types must be parenthesized
I'm not familiar with python and don't know how to "parenthesize" this to make it work again.
Change History (2)
comment:1 Changed 2 years ago by jmroot (Joshua Root)
comment:2 Changed 19 months ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
This isn't actually multiple exception types that just need to be enclosed in parens, it's (old) python 2 syntax for getting at the contents of the exception object. See https://peps.python.org/pep-3110/