D:/Python26/lib/site-packages/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated from sets import Immut

(转)

解决方法:
1) file "__init__", replace:
 
from sets import ImmutableSet  
class DBAPISet(ImmutableSet):  
 
with  
 
class DBAPISet(frozenset)
 
2) file "converters.py", remove:
 
from sets import BaseSet, Set
 
3) file "converters.py", change "Set" by "set" (IMPORTANT: only two places):
 
line 48: return set([ i for i in s.split(',') if i ])
line 128: set: Set2Str,

你可能感兴趣的:(python)