def _set_raw_format(self, value):
    warnings.warn(PiCameraDeprecated('PiCamera.raw_format is deprecated; use required format directly with capture methods instead'))
    if (value not in self.RAW_FORMATS):
        raise PiCameraValueError(('Invalid raw format: %s' % value))
    self._raw_format = value
def _set_raw_format(self, value):
    warnings.warn(PiCameraDeprecated('PiCamera.raw_format is deprecated; use required format directly with capture methods instead'))
    if (value not in self.RAW_FORMATS):
        raise PiCameraValueError(('Invalid raw format: %s' % value))
    self._raw_format = value