SIGN IN SIGN UP

Issue 7846: fnmatch cache can grow without bound

Updated to solution to use the functools.lru_cache().
Restores the API so that purge() is not needed
(because the cache never gets big).
R
Raymond Hettinger committed
5b0c1e07ca169feced6d6458f80c2b9ccc6227e0
Parent: 44c6c15