summaryrefslogtreecommitdiffstats
path: root/deluge/ui
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2021-09-21 21:40:13 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2021-09-21 21:43:53 +0100
commit1e6cc0394666ae95e9521f1016d07d56a3ed43a5 (patch)
tree9c4a1cd6da29403c8f14e6f190490ff39ab656ae /deluge/ui
parentd8526ba65335bcd48e3f5fa7056081d9a8cd5bd3 (diff)
downloaddeluge-1e6cc0394666ae95e9521f1016d07d56a3ed43a5.tar.gz
deluge-1e6cc0394666ae95e9521f1016d07d56a3ed43a5.tar.bz2
deluge-1e6cc0394666ae95e9521f1016d07d56a3ed43a5.zip
[Lint] Fix spelling mistakes
A quick fix of some of the mistakes caught by codespell. Updated readme with new IRC server Useful to add it as part of linting checks.
Diffstat (limited to 'deluge/ui')
-rw-r--r--deluge/ui/client.py6
-rw-r--r--deluge/ui/console/cmdline/commands/rm.py4
-rw-r--r--deluge/ui/console/parser.py2
-rw-r--r--deluge/ui/gtk3/files_tab.py2
-rw-r--r--deluge/ui/gtk3/filtertreeview.py2
-rw-r--r--deluge/ui/gtk3/glade/preferences_dialog.ui2
-rw-r--r--deluge/ui/gtk3/gtkui.py2
-rw-r--r--deluge/ui/gtk3/listview.py2
-rw-r--r--deluge/ui/gtk3/status_tab.py2
-rw-r--r--deluge/ui/hostlist.py2
-rw-r--r--deluge/ui/web/auth.py2
-rw-r--r--deluge/ui/web/server.py4
12 files changed, 17 insertions, 15 deletions
diff --git a/deluge/ui/client.py b/deluge/ui/client.py
index 686f962b3..180d8ef2b 100644
--- a/deluge/ui/client.py
+++ b/deluge/ui/client.py
@@ -65,7 +65,7 @@ class DelugeRPCRequest(object):
Returns a properly formatted RPCRequest based on the properties. Will
raise a TypeError if the properties haven't been set yet.
- :returns: a properly formated RPCRequest
+ :returns: a properly formatted RPCRequest
"""
if (
self.request_id is None
@@ -150,7 +150,7 @@ class DelugeRPCProtocol(DelugeTransferProtocol):
# so it could pass back to the 2nd deferred on the chain. But,
# that does not always happen.
# So, just do some instance checking and just log rpc error at
- # diferent levels.
+ # different levels.
r = self.__rpc_requests[request_id]
msg = 'RPCError Message Received!'
msg += '\n' + '-' * 80
@@ -168,7 +168,7 @@ class DelugeRPCProtocol(DelugeTransferProtocol):
# Let's log these as errors
log.error(msg)
else:
- # The rest just get's logged in debug level, just to log
+ # The rest just gets logged in debug level, just to log
# what's happening
log.debug(msg)
except Exception:
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
diff --git a/deluge/ui/gtk3/files_tab.py b/deluge/ui/gtk3/files_tab.py
index 6fda2fd37..50f8a4587 100644
--- a/deluge/ui/gtk3/files_tab.py
+++ b/deluge/ui/gtk3/files_tab.py
@@ -449,7 +449,7 @@ class FilesTab(Tab):
try:
value = completed_bytes / self.treestore[parent][1] * 100
except ZeroDivisionError:
- # Catch the unusal error found when moving folders around
+ # Catch the unusual error found when moving folders around
value = 0
self.treestore[parent][3] = value
self.treestore[parent][2] = '%i%%' % value
diff --git a/deluge/ui/gtk3/filtertreeview.py b/deluge/ui/gtk3/filtertreeview.py
index a7b6aa87c..4272ef018 100644
--- a/deluge/ui/gtk3/filtertreeview.py
+++ b/deluge/ui/gtk3/filtertreeview.py
@@ -224,7 +224,7 @@ class FilterTreeView(component.Component):
label = decode_bytes(model.get_value(row, 2))
count = model.get_value(row, 3)
- # Supress Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed
+ # Suppress Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed
original_filters = warnings.filters[:]
warnings.simplefilter('ignore')
try:
diff --git a/deluge/ui/gtk3/glade/preferences_dialog.ui b/deluge/ui/gtk3/glade/preferences_dialog.ui
index 1882521fd..11eda3296 100644
--- a/deluge/ui/gtk3/glade/preferences_dialog.ui
+++ b/deluge/ui/gtk3/glade/preferences_dialog.ui
@@ -2204,7 +2204,7 @@ used sparingly.</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
- <property name="tooltip_text" translatable="yes">Torrents not transfering any data do not count towards download/seeding active count.</property>
+ <property name="tooltip_text" translatable="yes">Torrents not transferring any data do not count towards download/seeding active count.</property>
<property name="halign">start</property>
<property name="draw_indicator">True</property>
</object>
diff --git a/deluge/ui/gtk3/gtkui.py b/deluge/ui/gtk3/gtkui.py
index ebb78e8b2..74f29384e 100644
--- a/deluge/ui/gtk3/gtkui.py
+++ b/deluge/ui/gtk3/gtkui.py
@@ -221,7 +221,7 @@ class GtkUI(object):
menubar_osx(self, self.osxapp)
self.osxapp.ready()
- # Initalize the plugins
+ # Initialize the plugins
self.plugins = PluginManager()
# Show the connection manager
diff --git a/deluge/ui/gtk3/listview.py b/deluge/ui/gtk3/listview.py
index 07b366978..4e9fe5db8 100644
--- a/deluge/ui/gtk3/listview.py
+++ b/deluge/ui/gtk3/listview.py
@@ -112,7 +112,7 @@ class ListView(object):
Gtk.TreeViewColumn.set_visible(self, visible)
if self.data_func:
if not visible:
- # Set data function to None to prevent unecessary calls when column is hidden
+ # Set data function to None to prevent unnecessary calls when column is hidden
self.set_cell_data_func(self.cell_renderer, None, func_data=None)
else:
self.set_cell_data_func(
diff --git a/deluge/ui/gtk3/status_tab.py b/deluge/ui/gtk3/status_tab.py
index fab671940..938c2dd7d 100644
--- a/deluge/ui/gtk3/status_tab.py
+++ b/deluge/ui/gtk3/status_tab.py
@@ -110,7 +110,7 @@ class StatusTab(Tab):
if decode_bytes(widget[0].get_text()) != txt:
widget[0].set_text(txt)
- # Update progress bar seperately as it's a special case (not a label).
+ # Update progress bar separately as it's a special case (not a label).
fraction = status['progress'] / 100
if self.config['show_piecesbar']:
diff --git a/deluge/ui/hostlist.py b/deluge/ui/hostlist.py
index 09130192c..b4bb538fb 100644
--- a/deluge/ui/hostlist.py
+++ b/deluge/ui/hostlist.py
@@ -102,7 +102,7 @@ class HostList(object):
self.config.save()
def check_info_exists(self, hostname, port, username, skip_host_id=None):
- """Check for exising host entries with the same details.
+ """Check for existing host entries with the same details.
Args:
hostname (str): The IP or hostname of the deluge daemon.
diff --git a/deluge/ui/web/auth.py b/deluge/ui/web/auth.py
index fa9504954..d631f9186 100644
--- a/deluge/ui/web/auth.py
+++ b/deluge/ui/web/auth.py
@@ -60,7 +60,7 @@ def make_expires(timeout):
class Auth(JSONComponent):
"""
- The component that implements authentification into the JSON interface.
+ The component that implements authentication into the JSON interface.
"""
def __init__(self, config):
diff --git a/deluge/ui/web/server.py b/deluge/ui/web/server.py
index d730e72e9..f3866729e 100644
--- a/deluge/ui/web/server.py
+++ b/deluge/ui/web/server.py
@@ -653,7 +653,7 @@ class DelugeWeb(component.Component):
Args:
options (argparse.Namespace): The web server options.
- daemon (bool): If True run web server as a seperate daemon process (starts a twisted
+ daemon (bool): If True run web server as a separate daemon process (starts a twisted
reactor). If False shares the process and twisted reactor from WebUI plugin or tests.
"""
@@ -698,7 +698,7 @@ class DelugeWeb(component.Component):
self.auth = Auth(self.config)
self.daemon = daemon
- # Initalize the plugins
+ # Initialize the plugins
self.plugins = PluginManager()
def _on_language_changed(self, key, value):