Opened 10 years ago

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


During an trac-admin update i noticed this message.


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 9 years ago.
patch to 'import re' instead of the deprecated 'import sre'

Download all attachments as: .zip

Change History (6)

comment:1 Changed 10 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 9 years ago by Mariano Absatz

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

comment:2 Changed 9 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.


comment:3 Changed 9 years ago by anonymous

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

comment:4 Changed 8 years ago by anonymous

how do I edit an egg?

comment:5 Changed 7 years ago by Steffen Hoffmann

Resolution: fixed
Status: newclosed

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

Modify Ticket

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.