Lines Matching refs:f
52 raise OHOSException(f'{input_file} not found')
66 raise OHOSException(f'{input_file} not found')
75 raise OHOSException(f'{input_file} load failed, error line:'
76 f' {mark.line + 1}:{mark.column + 1}')
148 raise OHOSException(f'command: "{cmd}" failed\n'
149 f'return code: {ret}\n'
150 f'execution path: {os.getcwd()}')
160 raise OHOSException(f"{path} makedirs failed")
165 raise OHOSException(f"{path} exists, makedirs failed")
232 msg = msg.replace('error:', f'{Colors.ERROR}error{Colors.END}:')
233 return f'{Colors.ERROR}[OHOS {level.upper()}]{Colors.END} {msg}'
235 return f'[OHOS {level.upper()}] {msg}'
237 return f'{Colors.WARNING}[OHOS {level.upper()}]{Colors.END} {msg}'
259 raise OHOSException(f'download {url} timeout!')
262 hb_info(f'Downloading {url} ...')
264 hb_error(f'Downloading {url} failed with code: {res.status_code}!')
272 with open(dst, "wb") as f:
275 f.write(chunk)
283 f'{url} download failed, please install it manually!')
290 hb_info(f'Extracting to {tgt_dir}, please wait...')
297 raise OHOSException(f'Extract file type not support!')
302 f'{src} extract failed, please install it manually!')