http://hg.python.org/cpython/rev/34129a7366b6 changeset: 69538:34129a7366b6 branch: 2.7 user: Raymond Hettinger <python at rcn.com> date: Sat Apr 23 20:11:50 2011 -0700 summary: Minor code clean-up. files: Lib/collections.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Lib/collections.py b/Lib/collections.py --- a/Lib/collections.py +++ b/Lib/collections.py @@ -92,7 +92,8 @@ try: for node in self.__map.itervalues(): del node[:] - self.__root[:] = [self.__root, self.__root, None] + root = self.__root + root[:] = [root, root, None] self.__map.clear() except AttributeError: pass -- Repository URL: http://hg.python.org/cpython