#9 Deprecation warnings under Python 2.6

closed-fixed
nobody
None
5
2010-01-12
2010-01-12
Tres Seaver
No

Two modules use the deprecated Sets module, leading to a warning:

$ /home/tseaver/projects/agendaless/OSI/karlsample/eggs/FormEncode-1.0.1-py2.6.egg/formencode/foreach.py:8: \ DeprecationWarning: the sets module is deprecated
from sets import Set

The attached patch prefers the new 'set' builtin (available since Python 2.4), falling back to the import.

Discussion

  • Tres Seaver

    Tres Seaver - 2010-01-12

    My patch was against version 1.0.1: it looks like later releases already fix these warnings.

     
  • Tres Seaver

    Tres Seaver - 2010-01-12
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks