Lines Matching refs:f
70 with open(owner_file, 'r', encoding='utf-8') as f:
71 return f.read().strip()
75 print(f'Sending email for {proj}: {latest_ver}')
80 msg = f'An upgrade change is generated at:\n{match.group(1)}'
85 subject += f" {proj} {latest_ver}"
102 f'--to={recipient}',
103 f'--cc={cc_recipient}',
104 f'--subject={subject}'],
153 msg = f"""Failed to send email for {proj} ({latest_ver}).
165 with open(RESULT_FILE_PATH, 'r', encoding='utf-8') as f:
166 results = json.load(f)
169 with open(args.history, 'r', encoding='utf-8') as f:
170 history = json.load(f)
176 with open(args.history, 'w', encoding='utf-8') as f:
177 json.dump(history, f, sort_keys=True, indent=4)
190 return f"""