Poodletooth-iLand/panda/direct/directutil/DirectMySQLdb.py
Master Jumblespeed d882959bfa switch to remote
2015-05-18 22:11:33 -04:00

10 lines
373 B
Python
Executable file

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