def __init__(self, engine, driverName, debug):
if driverName is None:<EOL><INDENT>if sys.platform == '<STR_LIT>':<EOL><INDENT>driverName = '<STR_LIT>'<EOL><DEDENT>elif sys.platform == '<STR_LIT:win32>':<EOL><INDENT>driverName = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>driverName = '<STR_LIT>'<EOL><DEDENT><DEDENT>name = '<STR_LIT>' % driverName<EOL>self._module = importlib.import_module(name)<EOL>self._driver = self._module.buildDriver(weakref.proxy(self))<EOL>self._engine = engine<EOL>self._queue = []<EOL>self._busy = True<EOL>self._name = None<EOL>self._iterator = None<EOL>self._debug = debug<EOL>
Constructor.

@param engine: Reference to the engine that owns the driver
@type engine: L{engine.Engine}
@param driverName: Name of the driver module to use under drivers/ or
    None to select the default for the platform
@type driverName: str
@param debug: Debugging output enabled or not
@type debug: bool