From 58a74202e1f08c5a763594b0baa708736729321e Mon Sep 17 00:00:00 2001 From: John Garland Date: Sun, 9 May 2010 17:01:15 +1000 Subject: [PATCH] Use better names for TrackerIcons' args --- deluge/ui/tracker_icons.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deluge/ui/tracker_icons.py b/deluge/ui/tracker_icons.py index c4f283555..a86709c44 100644 --- a/deluge/ui/tracker_icons.py +++ b/deluge/ui/tracker_icons.py @@ -121,7 +121,7 @@ class TrackerIcons(Component): """ A TrackerIcon factory class """ - def __init__(self, dir=None, noIcon=None): + def __init__(self, icon_dir=None, no_icon=None): """ Initialises a new TrackerIcons object @@ -132,9 +132,9 @@ class TrackerIcons(Component): :type noIcon: string """ Component.__init__(self, "TrackerIcons") - if not dir: - dir = get_config_dir("icons") - self.dir = dir + if not icon_dir: + icon_dir = get_config_dir("icons") + self.dir = icon_dir if not os.path.isdir(self.dir): os.makedirs(self.dir) @@ -146,8 +146,8 @@ class TrackerIcons(Component): self.icons[host] = TrackerIcon(os.path.join(self.dir, icon)) except KeyError: log.warning("invalid icon %s", icon) - if noIcon: - self.icons[None] = TrackerIcon(noIcon) + if no_icon: + self.icons[None] = TrackerIcon(no_icon) else: self.icons[None] = None self.icons[''] = self.icons[None]