mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-25 12:42:41 -06:00
11 lines
373 B
Python
11 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
|