From 853d29a0f12cdcb6c406b829a57439c7ea9b570d Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 14 Jul 2011 20:59:01 +0200 Subject: has_key refractored, package name generator by Geek --- module/plugins/hooks/RehostTo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/hooks/RehostTo.py') diff --git a/module/plugins/hooks/RehostTo.py b/module/plugins/hooks/RehostTo.py index 324ef9b91..48b0fd826 100644 --- a/module/plugins/hooks/RehostTo.py +++ b/module/plugins/hooks/RehostTo.py @@ -60,7 +60,7 @@ class RehostTo(Hook): for hoster in self.getHostersCached(): name = removeChars(hoster.lower(), "-.") - if pluginMap.has_key(name): + if name in pluginMap: supported.append(pluginMap[name]) else: new_supported.append(hoster) @@ -81,4 +81,4 @@ class RehostTo(Hook): dict = self.core.pluginManager.hosterPlugins["RehostTo"] dict["pattern"] = regexp - dict["re"] = re.compile(regexp) \ No newline at end of file + dict["re"] = re.compile(regexp) -- cgit v1.2.3