mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 11:10:58 +08:00
remove unused lines.
This commit is contained in:
@ -145,9 +145,7 @@ class Connection(_mysql.connection):
|
|||||||
"""
|
"""
|
||||||
from MySQLdb.constants import CLIENT, FIELD_TYPE
|
from MySQLdb.constants import CLIENT, FIELD_TYPE
|
||||||
from MySQLdb.converters import conversions
|
from MySQLdb.converters import conversions
|
||||||
from weakref import proxy, WeakValueDictionary
|
from weakref import proxy
|
||||||
|
|
||||||
import types
|
|
||||||
|
|
||||||
kwargs2 = kwargs.copy()
|
kwargs2 = kwargs.copy()
|
||||||
|
|
||||||
@ -242,7 +240,8 @@ class Connection(_mysql.connection):
|
|||||||
"""
|
"""
|
||||||
return (cursorclass or self.cursorclass)(self)
|
return (cursorclass or self.cursorclass)(self)
|
||||||
|
|
||||||
def __enter__(self): return self.cursor()
|
def __enter__(self):
|
||||||
|
return self.cursor()
|
||||||
|
|
||||||
def __exit__(self, exc, value, tb):
|
def __exit__(self, exc, value, tb):
|
||||||
if exc:
|
if exc:
|
||||||
|
Reference in New Issue
Block a user