pidgin/purple-plugin-pack

this is SOOOOOOOOO much cleaner
org.guifications.plugins.buildsystem_rewrite
2008-04-29, grim
8f17ab2e4ea4
Parents d074278fef63
Children ea8b5b99ad3b
this is SOOOOOOOOO much cleaner
--- a/plugin_pack.py Tue Apr 29 00:07:25 2008 -0400
+++ b/plugin_pack.py Tue Apr 29 23:13:19 2008 -0400
@@ -112,11 +112,8 @@
# this is kind of hacky, but if we have types, we check to see
# if the type is in list of types to load.
- if types:
- try:
- types.index(p.type)
- except ValueError:
- continue
+ if types and not p.type in types:
+ continue
# now we check if the give plugins depends match the search
# depends
@@ -144,11 +141,8 @@
for name in self.plugins.keys():
plugin = self.plugins[name]
- try:
- plugin.depends.index(dep)
+ if dep in plugin.depends:
list.append(plugin)
- except ValueError:
- pass
list.sort()