Module: deluge Branch: 1.3-stable Commit: 58a74202e1f08c5a763594b0baa708736729321e
Author: John Garland <[email protected]> Date: Sun May 9 17:01:15 2010 +1000 Use better names for TrackerIcons' args --- deluge/ui/tracker_icons.py | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/deluge/ui/tracker_icons.py b/deluge/ui/tracker_icons.py index c4f2835..a86709c 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] -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
