Modify

Opened 3 years ago

Closed 3 years ago

#8646 closed defect (fixed)

Not working on python-2.5, Trac-0.12.2

Reported by: sandinak Owned by: ChristianM
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 3 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 3 years ago by ChristianM

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from ChristianM. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.