fix string parsing

This commit is contained in:
Thomas S Hatch 2011-04-22 21:45:19 -06:00
parent 3acc2351e4
commit 4ce6ba58f0

View File

@ -131,5 +131,5 @@ class Loader(object):
funcs = {}
for key, fun in self.gen_functions().items():
if key[key.index('.') + 1:] == name:
funcs[:key[key.index('.')]] = fun
funcs[key[:key.index('.')]] = fun
return funcs