Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, driver, timeout, pm=None):
self.driver = driver
self.driver_adapter = IDriver(driver)
self.timeout = timeout
self.pm = pm
if self.pm is None:
self.pm = PluginManager("pypom")
self.pm.add_hookspecs(hooks)
self.pm.load_setuptools_entrypoints("pypom.plugin")
self.pm.check_pending()
self.wait = self.driver_adapter.wait_factory(self.timeout)