Skip to content

Commit aae218b

Browse files
committed
1 parent 9d2e3c1 commit aae218b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Doc/library/collections.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,12 +1258,6 @@ variants of :func:`functools.lru_cache`:
12581258
if len(self.requests) > self.maxrequests:
12591259
self.requests.popitem(last=False)
12601260
else:
1261-
# no longer need to keep track of how many times this
1262-
# entry has been seen; in a single-threaded environment,
1263-
# the self.requests OrderedDict will always contain the value
1264-
# being removed, but use pop(args, None) to reduce
1265-
# complications in a multi-threaded environment where
1266-
# a race condition may cause an exception
12671261
self.requests.pop(args, None)
12681262
self.cache[args] = result
12691263
if len(self.cache) > self.maxsize:

0 commit comments

Comments
 (0)