Modify ↓
Opened 15 years ago
Closed 15 years ago
#8646 closed defect (fixed)
Not working on python-2.5, Trac-0.12.2
| Reported by: | branson | Owned by: | Christian Masopust |
|---|---|---|---|
| Priority: | normal | Component: | MotdPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 0.12 |
Description
Getting this in the logs:
2011-03-30 15:39:04,630 Trac[api] DEBUG: Now checking for WIKI_VIEW on FOO
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/local/lib/python2.5/site-packages/TracMessageOfTheDayPlugin-0.1-py2.5.egg/tracmotd/__init__.py", line 1, in <module>
from motd import *
File "/usr/local/lib/python2.5/site-packages/TracMessageOfTheDayPlugin-0.1-py2.5.egg/tracmotd/motd.py", line 141
with open(message_file, 'r') as mf:
Attachments (0)
Change History (2)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
fixed in revision #10027 (completely removed with-statement... don't forget: i'm no python-expert ;))
Note: See
TracTickets for help on using
tickets.



The
withstatement is not enabled for Python 2.5, so use of the context manager won't work unless enabled by doingfrom __future__ import with_statement.