try: input_api.subprocess.check_output(args) return [] except input_api.subprocess.CalledProcessError as error: return [ output_api.PresubmitError('checkperms.py failed:', long_text=error.output.decode( 'utf-8', 'ignore')) ...
PresubmitError('checkperms.py failed.', errors.splitlines())] return [] def _CheckNoAuraWindowPropertyHInHeaders(input_api, output_api): """Makes sure we don't include ui/aura/window_property.h in header files. """ pattern = input_api.re.compile(r'^#include\s*"ui/aura/window_...