Modify

Opened 14 years ago

Closed 14 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 14 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 14 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
Action
as closed The owner will remain Christian Masopust.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.