def __init__(self, devname): d = self.__dict__ d['sane_signature'] = self._getSaneSignature(devname) d['scanner_model'] = d['sane_signature'][1:3] d['dev'] = _sane._open(devname) self.__load_option_dict()
def __init__(self, devname): d = self.__dict__ d['devname'] = devname d['dev'] = _sane._open(devname) self.__load_option_dict()
def __init__(self, devname): d = self.__dict__ d["sane_signature"] = self._getSaneSignature(devname) d["scanner_model"] = d["sane_signature"][1:3] d["dev"] = _sane._open(devname) self.__load_option_dict()
def __init__(self, devname): d=self.__dict__ d['sane_signature'] = self._getSaneSignature(devname) d['scanner_model'] = d['sane_signature'][1:3] d['dev'] = _sane._open(devname) self.__load_option_dict()
def open(self): if self._device is not None: return self._device = sane._open(self.name) # pylint: disable=protected-access