Mini-patch to use the new built-in set types in Python 2.6
MySQL database connector for Python programming
Brought to you by:
adustman
Hi all!
I patched a few lines to make MySQLdb run without warnings on Python 2.6. All it took was to replace the imports of the deprecated "sets" module with the new built-in types.
Note that this change means that MySQLdb will no longer run on Python 2.5.
I also updated the ez_setup.py file to use the latest setuptools (0.6c9).
Regards,
Christian Blichmann
Patch for running with Python 2.6
I would like to propose a small modification to this patch which will allow it to work also with previous python versions.
Please see my version:
$ diff -r MySQL-python-1.2.2{,-fb}
diff -r MySQL-python-1.2.2/MySQLdb/converters.py MySQL-python-1.2.2-fb/MySQLdb/converters.py
37c37,41
< from sets import BaseSet, Set