Edgewall Software

Changes between Initial Version and Version 2 of Ticket #7510


Ignore:
Timestamp:
Mar 26, 2009, 10:21:01 PM (15 years ago)
Author:
Christian Boos
Comment:

Seems indeed needed for 2.4

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7510

    • Property Keywords python24 added
    • Property Milestone 0.10.60.11.6
  • Ticket #7510 – Description

    initial v2  
    11With Python 2.4 and Trac 10.5 certain macros (e.g., Image) raise an exception:
     2{{{
    23  global name 'GeneratorExit' is not defined
     4}}}
    35
    46I think GeneratorExit was introduced in Python 2.5:
     
    68
    79Removing the following lines
     10{{{
    811 449                except GeneratorExit:
    912 450                    # never catch GeneratorExit
    1013 451                    raise
     14}}}
    1115from /usr/lib/python2.4/site-packages/trac/wiki/macros.py resolves this issue.
    1216
     
    1519
    1620Adding the following to the top of the module:
     21{{{
    1722   try:
    1823       GeneratorExit
    1924   except NameError:
    2025       class GeneratorExit(Exception): pass
     26}}}
    2127would allow the fix for 5339 to stay.