Commit a5c4d0ad authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2857] Use more common construct

Use for cycle instead of while and eating of the elements from the list.
parent c7e1ff03
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment