#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 22 months ago by jmroot (Joshua Root)

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/

comment:2 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In cc09948522920e69f422707b68a9b375aa2f2411/macports-ports (master):

nonpareil: Fix build for python 3

Closes: #65393

Note: See TracTickets for help on using tickets.