remove unused lines.

This commit is contained in:
INADA Naoki
2013-01-05 09:19:43 +09:00
parent ad119309fc
commit 52894fd137

View File

@ -145,9 +145,7 @@ class Connection(_mysql.connection):
"""
from MySQLdb.constants import CLIENT, FIELD_TYPE
from MySQLdb.converters import conversions
from weakref import proxy, WeakValueDictionary
import types
from weakref import proxy
kwargs2 = kwargs.copy()
@ -242,7 +240,8 @@ class Connection(_mysql.connection):
"""
return (cursorclass or self.cursorclass)(self)
def __enter__(self): return self.cursor()
def __enter__(self):
return self.cursor()
def __exit__(self, exc, value, tb):
if exc: