Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
a5c4d0ad
Commit
a5c4d0ad
authored
Aug 26, 2013
by
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
Changes
1
Show whitespace changes
Inline
Side-by-side
src/bin/memmgr/memmgr.py.in
View file @
a5c4d0ad
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment