Changes between Initial Version and Version 2 of Ticket #7510
- Timestamp:
- Mar 26, 2009, 10:21:01 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7510
- Property Keywords python24 added
- Property Milestone 0.10.6 → 0.11.6
-
Ticket #7510 – Description
initial v2 1 1 With Python 2.4 and Trac 10.5 certain macros (e.g., Image) raise an exception: 2 {{{ 2 3 global name 'GeneratorExit' is not defined 4 }}} 3 5 4 6 I think GeneratorExit was introduced in Python 2.5: … … 6 8 7 9 Removing the following lines 10 {{{ 8 11 449 except GeneratorExit: 9 12 450 # never catch GeneratorExit 10 13 451 raise 14 }}} 11 15 from /usr/lib/python2.4/site-packages/trac/wiki/macros.py resolves this issue. 12 16 … … 15 19 16 20 Adding the following to the top of the module: 21 {{{ 17 22 try: 18 23 GeneratorExit 19 24 except NameError: 20 25 class GeneratorExit(Exception): pass 26 }}} 21 27 would allow the fix for 5339 to stay.