mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
Oops, checked in the wrong file
This commit is contained in:
parent
88048bf3da
commit
66f4964c8b
@ -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', '')
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user