diff options
author | Calum Lind <calumlind@gmail.com> | 2018-06-01 15:35:19 +0100 |
---|---|---|
committer | Calum Lind <calumlind@gmail.com> | 2018-06-01 23:41:17 +0100 |
commit | d642fa398924913c04eea3c2ddb769a4a6857fc3 (patch) | |
tree | 420c6e4d20b5550d1fc2ac2586968df4bf407ac6 /deluge/ui/console/cmdline/commands/rm.py | |
parent | bae1647e99e68244607e50633ca67a8c5b16ebfb (diff) | |
download | deluge-d642fa398924913c04eea3c2ddb769a4a6857fc3.tar.gz deluge-d642fa398924913c04eea3c2ddb769a4a6857fc3.tar.bz2 deluge-d642fa398924913c04eea3c2ddb769a4a6857fc3.zip |
Fix files to pass new Flake8 checkers
Some new flake8 checkers were added so fix these new warnings and
any issues uncovered.
Use add-trailing-comma to fix missing trailing commas. It does not
format it as well as I would like however it was fast to change and
helps with git changes in future.
Removed pylint from tox due to large number of warnings.
Diffstat (limited to 'deluge/ui/console/cmdline/commands/rm.py')
-rw-r--r-- | deluge/ui/console/cmdline/commands/rm.py | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/deluge/ui/console/cmdline/commands/rm.py b/deluge/ui/console/cmdline/commands/rm.py index 3e97178f4..a2d431c4d 100644 --- a/deluge/ui/console/cmdline/commands/rm.py +++ b/deluge/ui/console/cmdline/commands/rm.py @@ -25,10 +25,14 @@ class Command(BaseCommand): aliases = ['del'] def add_arguments(self, parser): - parser.add_argument('--remove_data', action='store_true', default=False, - help=_('Also removes the torrent data')) - parser.add_argument('-c', '--confirm', action='store_true', default=False, - help=_('List the matching torrents without removing.')) + parser.add_argument( + '--remove_data', action='store_true', default=False, + help=_('Also removes the torrent data'), + ) + parser.add_argument( + '-c', '--confirm', action='store_true', default=False, + help=_('List the matching torrents without removing.'), + ) parser.add_argument('torrent_ids', metavar='<torrent-id>', nargs='+', help=_('One or more torrent ids')) def handle(self, options): @@ -36,9 +40,11 @@ class Command(BaseCommand): torrent_ids = self.console.match_torrents(options.torrent_ids) if not options.confirm: - self.console.write('{!info!}%d %s %s{!info!}' % (len(torrent_ids), - _n('torrent', 'torrents', len(torrent_ids)), - _n('match', 'matches', len(torrent_ids)))) + self.console.write('{!info!}%d %s %s{!info!}' % ( + len(torrent_ids), + _n('torrent', 'torrents', len(torrent_ids)), + _n('match', 'matches', len(torrent_ids)), + )) for t_id in torrent_ids: name = self.console.get_torrent_name(t_id) self.console.write('* %-50s (%s)' % (name, t_id)) |