Modify

Opened 6 years ago

Closed 6 years ago

#3702 closed defect (fixed)

Syntax error in 0.11-Permissions on python 2.3.4

Reported by: checat@… Owned by: bobbysmith007
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 6 years ago by bobbysmith007

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

(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.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from bobbysmith007. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.