Poodletooth-iLand/panda/direct/directutil/DirectMySQLdb.py

11 lines
373 B
Python
Raw Normal View History

2015-03-03 16:10:12 -06:00
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