Modify ↓
Opened 14 years ago
Closed 12 years ago
#8742 closed defect (duplicate)
SyntaxError: invalid syntax (core.py, line 205)
Reported by: | Owned by: | Tetsuya Morimoto | |
---|---|---|---|
Priority: | normal | Component: | TracCronPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
Hello,
I got this error when I'm using TracCron.
SyntaxError: invalid syntax (core.py, line 205) 2011-04-27 16:49:06,371 Trac[loader] ERROR: Skipping "traccron.task = traccron.task": Traceback (most recent call last): File "C:\Programme\Python25\lib\site-packages\trac-0.12.2-py2.5.egg\trac\loader.py", line 68, in _load_eggs entry.load(require=True) File "C:\Programme\Python25\Lib\site-packages\setuptools-0.6c11-py2.5.egg\pkg_resources.py", line 1954, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "build\bdist.win32\egg\traccron\task.py", line 18, in <module> File "d:\project\generalissuetracker\plugins\traccronplugin-0.3dev-py2.5.egg\traccron\core.py", line 205 except Exception as e: ^ SyntaxError: invalid syntax (core.py, line 205)
I got this error also when I compile your plugin
build\bdist.win32\egg\traccron\core.py:205: Warning: 'as' will become a reserved keyword in Python 2 .6 File "build\bdist.win32\egg\traccron\core.py", line 205 except Exception as e: ^ SyntaxError: invalid syntax
Attachments (0)
Change History (5)
comment:1 Changed 14 years ago by
Trac Release: | 0.11 → 0.12 |
---|
comment:2 follow-up: 3 Changed 13 years ago by
comment:3 Changed 13 years ago by
comment:4 Changed 12 years ago by
Owner: | changed from Thierry Bressure to Tetsuya Morimoto |
---|
comment:5 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
See also #9105 for Python 2.4 compatibility - the fix is as easy as replacing "as" by ",".