Modify

Opened 16 years ago

Closed 16 years ago

#3702 closed defect (fixed)

Syntax error in 0.11-Permissions on python 2.3.4

Reported by: checat@… Owned by: Russ Tyndall
Priority: normal Component: TimingAndEstimationPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

byte-compiling build/bdist.linux-i686/egg/timingandestimationplugin/tande_filters.py to tande_filters.pyc
  File "build/bdist.linux-i686/egg/timingandestimationplugin/tande_filters.py", line 39
    return (x.upper() for x in permissions)
                        ^
SyntaxError: invalid syntax
byte-compiling build/bdist.linux-i686/egg/timingandestimationplugin/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/timingandestimationplugin/blackmagic.py to blackmagic.pyc
  File "build/bdist.linux-i686/egg/timingandestimationplugin/blackmagic.py", line 86
    return (x.upper() for x in permissions)
                        ^
SyntaxError: invalid syntax

Could it be fixed with something like "from future import something", I wonder?

Attachments (0)

Change History (1)

comment:1 Changed 16 years ago by Russ Tyndall

Resolution: fixed
Status: newclosed

(In [4269]) closes #3702

python 2.3 doesnt support generator expressions. I have changed that to just a list comprehension which should work as well.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Russ Tyndall.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.