Opened 7 years ago

Closed 7 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


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/", line 1, in <module>
    from motd import *
  File "/usr/local/lib/python2.5/site-packages/TracMessageOfTheDayPlugin-0.1-py2.5.egg/tracmotd/", line 141
     with open(message_file, 'r') as mf:

Attachments (0)

Change History (2)

comment:1 Changed 7 years ago by osimons

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

comment:2 Changed 7 years ago by Christian Masopust

Resolution: fixed
Status: newclosed

fixed in revision #10027 (completely removed with-statement... don't forget: i'm no python-expert ;))

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Christian Masopust.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.