[Bug 399256] [NEW] Deprecation warnings around "import sets" when importing networkx

Jonathan Harker jon at jon.geek.nz
Tue Jul 14 12:00:28 UTC 2009


Public bug reported:

Binary package hint: python-networkx

I have a couple of patches to fix this - see attached. No point fixing
upstream as they're up to 0.99 version now. In the meantime, this should
fix warnings for Jaunty users using the 0.36 release.

>>> import networkx as nx
/var/lib/python-support/python2.6/networkx/hybrid.py:16: DeprecationWarning: the sets module is deprecated
  import sets
>>> 

and

>>> import networkx as nx
/var/lib/python-support/python2.6/networkx/isomorphvf2.py:29: DeprecationWarning: the sets module is deprecated
  from sets import Set
>>> 

Patch similar to Django fix here:
http://code.djangoproject.com/attachment/ticket/8078/sets.diff

** Affects: python-networkx (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Deprecation warnings around "import sets" when importing networkx
https://bugs.launchpad.net/bugs/399256
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list