wmjie / ibm-db

Automatically exported from code.google.com/p/ibm-db
0 stars 0 forks source link

sets module deprecation warning in Python 2.6 #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. import ibm_db_dbi
2. Warning prints:

/usr/local/lib/python2.6/dist-packages/ibm_db-1.0-py2.6-linux-i686.egg/ibm_db_db
i.py:25: 
DeprecationWarning: the sets module is deprecated
  from sets import ImmutableSet

Code in ibm_db_dbi should probably:

try:
    frozenset()
except NameError:
    from sets import ImmutableSet

to maintain forward and backward compat without the warning.

Original issue reported on code.google.com by pare...@gmail.com on 2 Oct 2009 at 2:46

GoogleCodeExporter commented 9 years ago

Original comment by rahul.pr...@in.ibm.com on 15 Oct 2009 at 6:41

GoogleCodeExporter commented 9 years ago
Issue 36 has been merged into this issue.

Original comment by rahul.pr...@in.ibm.com on 2 Nov 2009 at 3:05

GoogleCodeExporter commented 9 years ago
Fixed in ibm_db-1.0.2

Original comment by rahul.pr...@in.ibm.com on 29 Apr 2010 at 12:36