Modify

Opened 7 years ago

Closed 5 years ago

#1903 closed defect (fixed)

Wiki rename is using a deprecated module.

Reported by: StephenM Owned by: coderanger
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 baby 7 years ago.
patch to 'import re' instead of the deprecated 'import sre'

Download all attachments as: .zip

Change History (6)

comment:1 Changed 7 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 7 years ago by baby

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

comment:2 Changed 7 years ago by baby

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 7 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 6 years ago by anonymous

how do I edit an egg?

comment:5 Changed 5 years ago by hoff.st@…

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

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

Add Comment

Modify Ticket

Action
as 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.