New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #33615 (closed defect: worksforme)

Opened 14 months ago

Last modified 14 months ago

py24-pydicom: SyntaxError: invalid syntax

Reported by: ryandesign@… Owned by: eborisch@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc:
Port: py24-pydicom

Description

According to the buildbot, the following syntax error occurs when building the python 2.4 version of pydicom:

byte-compiling /opt/local/var/macports/build/_Volumes_work_mports_dports_python_py-pydicom/py24-pydicom/work/destroot/opt/local/lib/python2.4/site-packages/dicom/test/version_dep.py to version_dep.pyc
  File "/opt/local/lib/python2.4/site-packages/dicom/test/version_dep.py", line 15
    with warnings.catch_warnings(record=True) as w:
                ^
SyntaxError: invalid syntax

The install continues, but I worry that the software it installs doesn't actually work. Is this version of pydicom still compatible with python 2.4?

Change History

comment:1 Changed 14 months ago by eborisch@…

  • Status changed from new to closed
  • Resolution set to worksforme

That file has the doc string "Holds test code that is dependent on certain python versions". Source is here.

Looking at the calling file in the directory, it's only ever used if the python version is > 2.5. (The with syntax was first introduced in 2.5.)

I'm calling it good.

Note: See TracTickets for help on using tickets.