summaryrefslogtreecommitdiffstats
path: root/gen_web_gettext.py
diff options
context:
space:
mode:
authorDjLegolas <djlegolas@protonmail.com>2021-12-28 22:20:57 +0200
committerCalum Lind <calumlind+deluge@gmail.com>2021-12-29 21:51:07 +0000
commitec0bcc11f510cd113bbdb6cd551b27c697f03f53 (patch)
treec60c19a61a14fa157227ad7531406f250493b78e /gen_web_gettext.py
parent16895b4a492aedca8bcc2929a905207341c36b35 (diff)
downloaddeluge-ec0bcc11f510cd113bbdb6cd551b27c697f03f53.tar.gz
deluge-ec0bcc11f510cd113bbdb6cd551b27c697f03f53.tar.bz2
deluge-ec0bcc11f510cd113bbdb6cd551b27c697f03f53.zip
Upgrade codebase with pyupgrade (>=py3.6)
Added pyupgrade utility with manual stage to pre-commit and run on all files. Ref: https://github.com/asottile/pyupgrade Closes: deluge-torrent/deluge#326
Diffstat (limited to 'gen_web_gettext.py')
-rwxr-xr-xgen_web_gettext.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gen_web_gettext.py b/gen_web_gettext.py
index c299e429f..80186e938 100755
--- a/gen_web_gettext.py
+++ b/gen_web_gettext.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# -*- coding: utf-8 -*-
#
# Copyright (C) 2009-2012 Damien Churchill <damoxc@gmail.com>
#
@@ -117,4 +116,4 @@ if __name__ == '__main__':
print('Possible missed text for translation markup:')
for text, filenames in missed_markup.iteritems():
for filename_lineno in filenames:
- print('{0:<58} {1}'.format(':'.join(filename_lineno), text))
+ print('{:<58} {}'.format(':'.join(filename_lineno), text))