Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#7689 closed defect (fixed)

Deprecation Warning

Reported by: Roger John E. Ragasa Owned by: Roger John E. Ragasa
Priority: normal Component: DownloadsPlugin
Severity: normal Keywords: downloads, python
Cc: jordi@… Trac Release: 0.12

Description

I used to use DownloadsPlugin with Trac 0.11 but after upgrading to 0.12 I'm getting this problem when I try to install DownloadsPlugin 3 for Trac 0.12. I read somewhere that sets got deprecated at Python 2.6.

/usr/local/lib/python2.6/dist-packages/TracDownloads-0.3-py2.6.egg/tracdownloads/tags.py:3: DeprecationWarning: the sets module is deprecated
  import sets

Attachments (0)

Change History (5)

comment:1 Changed 6 years ago by Roger John E. Ragasa

made it work by removing the line

import sets

at the tags.py. I don't know what problem it will cause but for now it works.

comment:2 Changed 6 years ago by Roger John E. Ragasa

Owner: changed from Radek Bartoň to Roger John E. Ragasa

comment:3 Changed 6 years ago by Roger John E. Ragasa

Resolution: fixed
Status: newclosed

comment:4 Changed 6 years ago by anonymous

Cc: jordi@… added; anonymous removed

Is this really a fix? Is the sets module actually used at all?

comment:5 Changed 6 years ago by anonymous

Never mind. I see the SVN head does have a fix for this. Thanks!

Modify Ticket

Action
as closed The owner will remain Roger John E. Ragasa.
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.