diff options
author | adustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8> | 2012-09-07 18:09:19 +0000 |
---|---|---|
committer | adustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8> | 2012-09-07 18:09:19 +0000 |
commit | 33002cedff527063418a6b611b3492be98dc703a (patch) | |
tree | 99304a61b59f099d9aaffe25de340ea433e32ec8 /MySQLdb | |
parent | dd3cc7cafc1cdff9d2e5575057d8eea350363d00 (diff) | |
download | mysqldb1-33002cedff527063418a6b611b3492be98dc703a.tar.gz |
Delay setting cursorclass until after superclass initialization. Fixes #3211938
Diffstat (limited to 'MySQLdb')
-rw-r--r-- | MySQLdb/MySQLdb/connections.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MySQLdb/MySQLdb/connections.py b/MySQLdb/MySQLdb/connections.py index 63801d9..2b60311 100644 --- a/MySQLdb/MySQLdb/connections.py +++ b/MySQLdb/MySQLdb/connections.py @@ -164,7 +164,7 @@ class Connection(_mysql.connection): conv2[k] = v kwargs2['conv'] = conv2 - self.cursorclass = kwargs2.pop('cursorclass', self.default_cursor) + cursorclass = kwargs2.pop('cursorclass', self.default_cursor) charset = kwargs2.pop('charset', '') if charset: @@ -185,7 +185,7 @@ class Connection(_mysql.connection): kwargs2['client_flag'] = client_flag super(Connection, self).__init__(*args, **kwargs2) - + self.cursorclass = cursorclass self.encoders = dict([ (k, v) for k, v in conv.items() if type(k) is not int ]) |