BIND 10 trac2855_2, updated. 61dcb03fbe2c9a4e3df6e8afe269c0d94f00d925 [2855] Don't use clear() on lists (as it is a Python 3.3 feature)

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Jul 1 09:35:14 UTC 2013


The branch, trac2855_2 has been updated
       via  61dcb03fbe2c9a4e3df6e8afe269c0d94f00d925 (commit)
      from  58f2a7f08242fad52c397bbf7681b209dc84c896 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 61dcb03fbe2c9a4e3df6e8afe269c0d94f00d925
Author: Mukund Sivaraman <muks at isc.org>
Date:   Mon Jul 1 15:03:46 2013 +0530

    [2855] Don't use clear() on lists (as it is a Python 3.3 feature)

-----------------------------------------------------------------------

Summary of changes:
 src/lib/python/isc/memmgr/builder.py             |    2 +-
 src/lib/python/isc/memmgr/tests/builder_tests.py |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/python/isc/memmgr/builder.py b/src/lib/python/isc/memmgr/builder.py
index 676cedc..411c224 100644
--- a/src/lib/python/isc/memmgr/builder.py
+++ b/src/lib/python/isc/memmgr/builder.py
@@ -69,7 +69,7 @@ class MemorySegmentBuilder:
                 # Move the queue content to a local queue. Be careful of
                 # not making assignments to reference variables.
                 local_command_queue = self._command_queue.copy()
-                self._command_queue.clear()
+                del self._command_queue[:]
 
                 # Run commands passed in the command queue sequentially
                 # in the given order.  For now, it only supports the
diff --git a/src/lib/python/isc/memmgr/tests/builder_tests.py b/src/lib/python/isc/memmgr/tests/builder_tests.py
index 3e078a9..328fd74 100644
--- a/src/lib/python/isc/memmgr/tests/builder_tests.py
+++ b/src/lib/python/isc/memmgr/tests/builder_tests.py
@@ -86,7 +86,7 @@ class TestMemorySegmentBuilder(unittest.TestCase):
         response = self._builder_response_queue[0]
         self.assertTrue(isinstance(response, tuple))
         self.assertTupleEqual(response, ('bad_command',))
-        self._builder_response_queue.clear()
+        del self._builder_response_queue[:]
 
     def test_shutdown(self):
         """Tests that shutdown command exits the MemorySegmentBuilder



More information about the bind10-changes mailing list