def close(self): if self.dev: pyf.fp_dev_close(self.dev) self.dev = None
def close(self): """Closes the device. No more methods, except open(), may be called after this.""" if self.dev: pyf.fp_dev_close(self.dev) self.dev = None