mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 02:54:29 +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.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:
|
||||
|
Reference in New Issue
Block a user