Modify ↓
#8568 closed defect (wontfix)
tracscreenshots api.py syntax error
| Reported by: | gregd72002 | Owned by: | Radek Bartoň |
|---|---|---|---|
| Priority: | lowest | Component: | ScreenshotsPlugin |
| Severity: | blocker | Keywords: | api.py |
| Cc: | Trac Release: | 0.12 |
Description (last modified by )
when loading tracscreenshots it comes up with the following error:
2011-03-03 23:43:11,252 Trac[loader] ERROR: Skipping "TracScreenshots.core = tracscreenshots.core":
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/trac/loader.py", line 68, in _load_eggs
File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "build/bdist.linux-x86_64/egg/tracscreenshots/core.py", line 37, in ?
File "/usr/lib/python2.4/site-packages/TracScreenshots-0.8dev-py2.4.egg/tracscreenshots/api.py", line 53
'where' : (' WHERE ' + where) if where else ''}
This error also occurs when creating the egg:
byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/api.py to api.pyc
File "build/bdist.linux-x86_64/egg/tracscreenshots/api.py", line 53
'where' : (' WHERE ' + where) if where else ''}
^
SyntaxError: invalid syntax
byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/wiki.py to wiki.pyc
Attachments (0)
Change History (3)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
| Priority: | high → lowest |
|---|---|
| Resolution: | → wontfix |
| Status: | new → closed |
This is Python 2.4 inline if support problem. Rewrite it to:
- 'where' : (' WHERE ' + where) if where else ''}
+ 'where' : where and (' WHERE ' + where) or ''}
I won't fix it upstream.
comment:3 Changed 15 years ago by
| Description: | modified (diff) |
|---|
Note: See
TracTickets for help on using
tickets.



when loading tracscreenshots it comes up with the following error:
2011-03-03 23:43:11,252 Trac[loader] ERROR: Skipping "TracScreenshots?.core = tracscreenshots.core": Traceback (most recent call last): File "build/bdist.linux-x86_64/egg/trac/loader.py", line 68, in _load_eggs File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load entry = import(self.module_name, globals(),globals(), __name__?) File "build/bdist.linux-x86_64/egg/tracscreenshots/core.py", line 37, in ? File "/usr/lib/python2.4/site-packages/TracScreenshots-0.8dev-py2.4.egg/tracscreenshots/api.py", line 53 'where' : (' WHERE ' + where) if where else }This error also occurs when creating the egg:
byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/api.py to api.pyc File "build/bdist.linux-x86_64/egg/tracscreenshots/api.py", line 53 'where' : (' WHERE ' + where) if where else } SyntaxError?: invalid syntax byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/wiki.py to wiki.pyc