BIND 10 master, updated. a2a6bcce71abf5bbd7ee1da2d375a85c297ee21e [2922] Fix checks on <python3.3

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Jun 13 12:25:45 UTC 2013


The branch, master has been updated
       via  a2a6bcce71abf5bbd7ee1da2d375a85c297ee21e (commit)
      from  0fdc68bb68b017223f35a3dc39e5255a5f255d10 (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 a2a6bcce71abf5bbd7ee1da2d375a85c297ee21e
Author: Michal 'vorner' Vaner <vorner at vorner.cz>
Date:   Thu Jun 13 14:00:35 2013 +0200

    [2922] Fix checks on <python3.3
    
    The list.clear() method is new in python3.3. Use equivalent though less
    elegantly written code to do the same.

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

Summary of changes:
 src/bin/msgq/tests/msgq_test.py |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/msgq/tests/msgq_test.py b/src/bin/msgq/tests/msgq_test.py
index ffe1940..0c7d372 100644
--- a/src/bin/msgq/tests/msgq_test.py
+++ b/src/bin/msgq/tests/msgq_test.py
@@ -284,7 +284,7 @@ class MsgQTest(unittest.TestCase):
         self.__msgq.register_socket(sock)
         lname = self.__msgq.fd_to_lname[1] # Steal the lname
         self.assertEqual([('connected', {'client': lname})], notifications)
-        notifications.clear()
+        del notifications[:]
 
         # A notification should happen for a subscription to a group
         self.__msgq.process_command_subscribe(sock, {'group': 'G',
@@ -292,7 +292,7 @@ class MsgQTest(unittest.TestCase):
                                               None)
         self.assertEqual([('subscribed', {'client': lname, 'group': 'G'})],
                          notifications)
-        notifications.clear()
+        del notifications[:]
 
         # As well for unsubscription
         self.__msgq.process_command_unsubscribe(sock, {'group': 'G',
@@ -300,7 +300,7 @@ class MsgQTest(unittest.TestCase):
                                                 None)
         self.assertEqual([('unsubscribed', {'client': lname, 'group': 'G'})],
                          notifications)
-        notifications.clear()
+        del notifications[:]
 
         # Unsubscription from a group it isn't subscribed to
         self.__msgq.process_command_unsubscribe(sock, {'group': 'H',
@@ -325,7 +325,7 @@ class MsgQTest(unittest.TestCase):
         self.__msgq.process_command_subscribe(sock, {'group': 'G',
                                                      'instance': '*'},
                                               None)
-        notifications.clear()
+        del notifications[:]
 
         self.__msgq.kill_socket(sock.fileno(), sock)
         # Now, the notification for unsubscribe should be first, second for



More information about the bind10-changes mailing list