# HG changeset patch # User kylev # Date 1233894698 0 # Node ID 597efa4e031144594514b47fe700446b8a6ae2cd # Parent bb552e78999246c3fe26ebf8890adf43d5f9bd49 Trivial patch for dict.has_key() being deprecated going forward. https://sourceforge.net/tracker/index.php?func=detail&aid=2565545&group_id=22307&atid=374934 diff -r bb552e789992 -r 597efa4e0311 MySQLdb/connections.py --- a/MySQLdb/connections.py Tue Apr 01 16:16:14 2008 +0000 +++ b/MySQLdb/connections.py Fri Feb 06 04:31:38 2009 +0000 @@ -132,8 +132,8 @@ from weakref import proxy kwargs2 = kwargs.copy() - - if kwargs.has_key('conv'): + + if 'conv' in kwargs: conv = kwargs['conv'] else: conv = conversions