Poodletooth-iLand/dependencies/panda/direct/directutil/DirectMySQLdb.py
2015-05-29 05:03:48 -05:00

10 lines
373 B
Python

from MySQLdb import *
### DCR: from MySQLdb __init__.py
def Connect(*args, **kwargs):
"""Factory function for connections.Connection."""
### DCR: use DirectMySQLdbConnection to prevent memory leaks
from direct.directutil.DirectMySQLdbConnection import DirectMySQLdbConnection
return DirectMySQLdbConnection(*args, **kwargs)
connect = Connection = Connect