(self, spec)
return (dev_name in self._devices) and self._devices[dev_name].available()
Return whether the device indicated by the spec (including :) is available.
Return whether the device indicated by the spec (including :) is available.
Return whether the device indicated by the spec ( including : ) is available .
def device_available(self, spec):
        """Return whether the device indicated by the spec (including :) is available."""
        dev_name = spec.split(b':', 1)[0] + b':'
        return (dev_name in self._devices) and self._devices[dev_name].available()
def device_available ( self , spec ) : dev_name = spec . split ( b':' , 1 ) [ 0 ] + b':' return ( dev_name in self . _devices ) and self . _devices [ dev_name ] . available ( )