Browse Source

[2857] Use more common construct

Use for cycle instead of while and eating of the elements from the list.
Michal 'vorner' Vaner 11 years ago
parent
commit
a5c4d0ad9d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/bin/memmgr/memmgr.py.in

+ 1 - 2
src/bin/memmgr/memmgr.py.in

@@ -146,8 +146,7 @@ class Memmgr(BIND10Server):
             # not keep the original list.
             notifications = self._builder_response_queue[:]
             del self._builder_response_queue[:]
-        while notifications:
-            notification = notifications.pop()
+        for notification in notifications:
             notif_name = notification[0]
             if notif_name == 'load-completed':
                 (_, dsrc_info, rrclass, dsrc_name) = notification