pytst 0.96 : warning, API changes
OK, I should have done this waaaaaaay before. Anyway, I’ve made those changes to the API :
TST.almost(string,maximum_distance,filter,action)has been renamed toTST.close_match(string,maximum_distance,filter,action)TST.common_prefix(string,filter,action)has been renamed toTST.prefix_match(string,filter,action)walknow takes an optional parameter :TST.walk(filter,action,start=None). Ifstartis provided, the walk starts there, giving you all entries in the tree whose key begins with the given string.- The
NullFilterclass is removed, since it is useless. Just passNoneif you don’t want any filter.
I’m sorry if the migration poses any problems, all the more so that I’m the first who has to refactor some code
. The method names were very bad, common_prefix was especially confusing. This should be the last API change, the 1.0 version is close now.
Download pytst 0.96 here.