Opened 3 years ago

Closed 3 years ago

#9773 closed enhancement (fixed)

Deprecation warning

Reported by: rjollos Owned by: rjollos
Priority: normal Component: DownloadsPlugin
Severity: normal Keywords:
Cc: pkline Trac Release: 0.11


I'd like to get rid of this warning that I see when using Python 2.6:

/usr/local/python26_trac12/lib/python2.6/site-packages/TracDownloads-0.3_r11238-py2.6.egg/tracdownloads/ DeprecationWarning: the sets module is deprecated

Maybe the thing to do here is something like:

from trac.util.compat import set

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by rjollos

  • Cc pkline added; anonymous removed

On the 0.12 branch, I removed the following lines of code because I couldn't see the sets module being used anywhere in the module:

# Deprecated as for Python 2.6.
    import sets

I installed TagsPlugin and DownloadsPlugin in a tracdev environment and added a couple of uploads. Everything seems to work fine. I'd be happy to fix this on the 0.12 branch if you feel this is the correct change.

comment:2 Changed 3 years ago by rjollos

  • Owner changed from Blackhex to rjollos
  • Status changed from new to assigned

This seems like a pretty trivial change and it is working well. I hope you don't mind if I push it to the repository.

comment:3 Changed 3 years ago by rjollos

(In [11674]) Refs #9773: Removed unused imported of sets module, which was resulting in a deprecation warning with Python 2.6.

comment:4 Changed 3 years ago by rjollos

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

Add Comment

Modify Ticket

as closed The owner will remain rjollos.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.