From 7d61d2306e36d31ad992df4e332be4ff8c708ef8 Mon Sep 17 00:00:00 2001 From: Lesmiscore Date: Fri, 21 Oct 2022 22:26:00 +0900 Subject: [build] Replace `set-output` with `GITHUB_OUTPUT` (#5315) https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ Authored by: Lesmiscore --- devscripts/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'devscripts/utils.py') diff --git a/devscripts/utils.py b/devscripts/utils.py index aa17a5f7f..b91b8e65a 100644 --- a/devscripts/utils.py +++ b/devscripts/utils.py @@ -7,8 +7,8 @@ def read_file(fname): return f.read() -def write_file(fname, content): - with open(fname, 'w', encoding='utf-8') as f: +def write_file(fname, content, mode='w'): + with open(fname, mode, encoding='utf-8') as f: return f.write(content) -- cgit v1.2.3