summaryrefslogtreecommitdiffstats
path: root/deluge/ui/console
diff options
context:
space:
mode:
Diffstat (limited to 'deluge/ui/console')
-rw-r--r--deluge/ui/console/cmdline/commands/rm.py4
-rw-r--r--deluge/ui/console/parser.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/deluge/ui/console/cmdline/commands/rm.py b/deluge/ui/console/cmdline/commands/rm.py
index ff3125d81..c34148ac9 100644
--- a/deluge/ui/console/cmdline/commands/rm.py
+++ b/deluge/ui/console/cmdline/commands/rm.py
@@ -70,7 +70,9 @@ class Command(BaseCommand):
def on_removed_finished(errors):
if errors:
- self.console.write('Error(s) occured when trying to delete torrent(s).')
+ self.console.write(
+ 'Error(s) occurred when trying to delete torrent(s).'
+ )
for t_id, e_msg in errors:
self.console.write('Error removing torrent %s : %s' % (t_id, e_msg))
diff --git a/deluge/ui/console/parser.py b/deluge/ui/console/parser.py
index 1c0bd7009..917773aef 100644
--- a/deluge/ui/console/parser.py
+++ b/deluge/ui/console/parser.py
@@ -23,7 +23,7 @@ class OptionParserError(Exception):
class ConsoleBaseParser(argparse.ArgumentParser):
def format_help(self):
"""Differs from ArgumentParser.format_help by adding the raw epilog
- as formatted in the string. Default bahavior mangles the formatting.
+ as formatted in the string. Default behavior mangles the formatting.
"""
# Handle epilog manually to keep the text formatting