Deleted some redundant code and also made it forward-compatible with Python 3.
The caching should speed up requests by a lot when requesting a cached page. The fallback lru_cache (used on Python 2) isn't very efficient, so I highly recommend using Python 3 if possible.
Deleted some redundant code and also made it forward-compatible with Python 3.
The caching should speed up requests by a lot when requesting a cached page. The fallback
lru_cache
(used on Python 2) isn't very efficient, so I highly recommend using Python 3 if possible.