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):
self._handle = 0
self._item_count = 0
self._current_item = 0
self._encoding = 'windows-1251'
self._library = _library_singleton.get()
self._handle, self._item_count = self._open_installed_devices_session(driver)
self._param_list = "driver=" + pp.pformat(driver)
self.devices = []
for i in range(self._item_count):
self.devices.append(_Device(self, i))
self._is_frozen = True