run pyupgrade to upgrade the codebase to python3.6

This commit is contained in:
Kovid Goyal
2021-10-21 12:43:55 +05:30
parent 8f0b3983ee
commit 6546c1da9b
159 changed files with 194 additions and 353 deletions

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net>
import os
@@ -118,7 +117,7 @@ def update_check() -> bool:
'from kitty.update_check import run_worker; run_worker()'
], stdout=subprocess.PIPE)
except OSError as e:
log_error('Failed to run kitty for update check, with error: {}'.format(e))
log_error(f'Failed to run kitty for update check, with error: {e}')
return False
monitor_pid(p.pid)
get_boss().set_update_check_process(p)