Python 3.7 compat

This commit is contained in:
Kovid Goyal 2021-02-23 09:59:16 +05:30
parent dc9a13864b
commit 65eda67d7c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -159,7 +159,7 @@ class POT(Command): # {{{
f.seek(0), f.truncate(), f.write('\n'.join(lines).encode('utf-8')) f.seek(0), f.truncate(), f.write('\n'.join(lines).encode('utf-8'))
break break
else: else:
raise SystemExit(f'Failed to add file_filter for {slug=} to config file') raise SystemExit(f'Failed to add file_filter for slug={slug} to config file')
self.git('add .tx/config') self.git('add .tx/config')
self.upload_pot(resource=slug) self.upload_pot(resource=slug)
self.git(['add', dest]) self.git(['add', dest])