]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
include OrderedDict import in TimeBoundedLRU example (GH-96962)
authorHarry <harry.lees@gmail.com>
Thu, 22 Sep 2022 15:58:19 +0000 (16:58 +0100)
committerGitHub <noreply@github.com>
Thu, 22 Sep 2022 15:58:19 +0000 (10:58 -0500)
Doc/library/collections.rst

index 20863837fa1b8f4a4931fc2c057e1824fe1c7867..53b4b69f84b7bf4655f4033bcb7b88caa81ee7e9 100644 (file)
@@ -1201,6 +1201,7 @@ variants of :func:`functools.lru_cache`:
 
 .. testcode::
 
+    from collections import OrderedDict
     from time import time
 
     class TimeBoundedLRU: