From: Harry Date: Thu, 22 Sep 2022 15:58:19 +0000 (+0100) Subject: include OrderedDict import in TimeBoundedLRU example (GH-96962) X-Git-Tag: v3.12.0a1~367 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ec403536f1e4cb8ea3519bea43a5fb230ab374f4;p=thirdparty%2FPython%2Fcpython.git include OrderedDict import in TimeBoundedLRU example (GH-96962) --- diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 20863837fa1b..53b4b69f84b7 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -1201,6 +1201,7 @@ variants of :func:`functools.lru_cache`: .. testcode:: + from collections import OrderedDict from time import time class TimeBoundedLRU: