Mantis - pymysql
Viewing Issue Advanced Details
4668 other minor always 2011-01-14 01:02 2013-05-05 12:08
wbonnet  
maciej  
normal  
closed  
fixed  
none    
none  
0004668: Module MySQLdb outputs a DeprecationWarning
/opt/csw/lib/python/site-packages/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated
  from sets import ImmutableSet
A solution is detailled on this web site : http://flo.nigsch.com/?p=62 [^]

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

More details available on the web site
Issue History
2011-01-14 01:02 wbonnet New Issue
2013-05-05 12:06 maciej Status new => assigned
2013-05-05 12:06 maciej Assigned To => maciej
2013-05-05 12:08 maciej Note Added: 0010375
2013-05-05 12:08 maciej Status assigned => closed
2013-05-05 12:08 maciej Resolution open => fixed

Notes
(0010375)
maciej   
2013-05-05 12:08   
It has been fixed upstream, packaged and released.