Modify

Opened 17 years ago

Closed 15 years ago

#1903 closed defect (fixed)

Wiki rename is using a deprecated module.

Reported by: StephenM Owned by: Noah Kantrowitz
Priority: normal Component: WikiRenamePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

During an trac-admin update i noticed this message.

c:\Python25\lib\site-packages\tracwikirename-2.0-py2.5.egg\wikirename\util.py:6:

DeprecationWarning: The sre module is deprecated, please import re.

import sre

Thought I would pass this on for your information.

Attachments (1)

TracWikiRename-1.2-sre_re.patch (608 bytes) - added by Mariano Absatz 17 years ago.
patch to 'import re' instead of the deprecated 'import sre'

Download all attachments as: .zip

Change History (6)

comment:1 Changed 17 years ago by anonymous

I'm seeing the same thing on the box where we're testing python 2.5 rather than 2.4 - so it seems to be related to the newer python version. Still, if its easy to change to the newer lib then its better to do that.

Changed 17 years ago by Mariano Absatz

patch to 'import re' instead of the deprecated 'import sre'

comment:2 Changed 17 years ago by Mariano Absatz

I had the same problem in 0.10 and it went away simply doing what the error message tells me.

I'm attaching a patch that should solve the problem in both versions.

HTH

comment:3 Changed 17 years ago by anonymous

Note that line 85 of util.py needs to be updated in the 0.10 branch as well. Just change the sre to re.

comment:4 Changed 16 years ago by anonymous

how do I edit an egg?

comment:5 Changed 15 years ago by Steffen Hoffmann

Resolution: fixed
Status: newclosed

fixed with [3617] as of 05/06/08 12:33:47

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
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.