diff options
| author | Sam James <sam@gentoo.org> | 2023-08-07 01:29:39 +0100 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2023-08-07 01:32:33 +0100 |
| commit | 1a2c70dd32ab335b38fa6da8a625ff47a3467dfa (patch) | |
| tree | b280481bd8f8642dbc86b10e8726677bbdd28a24 /setup.py | |
| parent | 9fbd05c05f86bb9c67d229ea64fe72c5ea08cf62 (diff) | |
| download | gentoolkit-1a2c70dd32ab335b38fa6da8a625ff47a3467dfa.tar.gz | |
Run `pyupgrade --py39-plus`
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -86,11 +86,11 @@ class set_version(core.Command): def sub(files, pattern): for f in files: updated_file = [] - with io.open(f[0], "r", 1, "utf_8") as s: + with open(f[0], "r", 1, "utf_8") as s: for line in s: newline = re.sub(pattern % f[1], '"%s"' % ver, line, 1) updated_file.append(newline) - with io.open(f[0], "w", 1, "utf_8") as s: + with open(f[0], "w", 1, "utf_8") as s: s.writelines(updated_file) quote = r'[\'"]{1}' |
