Fix linecache.py add lazycache to __all__ and use dict.clear to clear the cache (GH-4641)

This commit is contained in:
加和 2020-01-26 10:07:40 +08:00 committed by Cheryl Sabella
parent 8271441d8b
commit 4515a590a4
2 changed files with 21 additions and 18 deletions

View file

@ -0,0 +1,3 @@
* Add `lazycache` function to `__all__`.
* Use `dict.clear` to clear the cache.
* Refactoring `getline` function and `checkcache` function.