Saturday, November 21, 2009

base




If you get the error:


/var/lib/python-support/python2.6/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated
from sets import ImmutableSet


Then check out this page. Which says to:


To get rid of this error and use the more efficient built-in set
type, do the following in the __init__.py file that was reported:

* comment line 34: from sets import ImmutableSet

* add after that line: ImmutableSet = frozenset

* comment line 41 in the original file: from sets import BaseSet

* add after that line: BaseSet = set

Like this the built-in types will be used anytime a BaseSet or an ImmutableSet is referenced.


and


In converters.py :

comment line 37 : from sets import BaseSet, Set
add after that line: BaseSet = set
add after that line: Set = frozenset