Oops, checked in the wrong file

This commit is contained in:
rdb 2013-12-17 20:04:59 +00:00
parent 88048bf3da
commit 66f4964c8b
2 changed files with 9 additions and 9 deletions

View File

@ -8,19 +8,16 @@ class DirectMySQLdbConnection(Connection):
from MySQLdb.constants import CLIENT, FIELD_TYPE
from MySQLdb.converters import conversions
from weakref import proxy, WeakValueDictionary
import types
kwargs2 = kwargs.copy()
if kwargs.has_key('conv'):
conv = kwargs['conv']
else:
conv = conversions
conv = kwargs.get('conv', conversions)
kwargs2['conv'] = dict([ (k, v) for k, v in conv.items()
if type(k) is int ])
self.cursorclass = kwargs2.pop('cursorclass', self.default_cursor)
charset = kwargs2.pop('charset', '')
@ -28,7 +25,7 @@ class DirectMySQLdbConnection(Connection):
use_unicode = True
else:
use_unicode = False
use_unicode = kwargs2.pop('use_unicode', use_unicode)
sql_mode = kwargs2.pop('sql_mode', '')

View File

@ -61,7 +61,10 @@ import bisect
__report_indent = 3
from direct.directutil import Verify
from panda3d.core import ConfigVariableBool
# Don't import libpandaexpressModules, which doesn't get built until
# genPyCode.
import direct.extensions_native.extension_native_helpers
from libpandaexpress import ConfigVariableBool
ScalarTypes = (types.FloatType, types.IntType, types.LongType)