[Python-checkins] cpython (2.7): Minor code clean-up.

raymond.hettinger python-checkins at python.org
Sun Apr 24 05:12:56 CEST 2011


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


More information about the Python-checkins mailing list