(self)
Close the device.
Close the device.
Close the device .
def close(self):
        """Close the device."""
        if self.device_file:
            self.device_file.close()
def close ( self ) : if self . device_file : self . device_file . close ( )