Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
c3473496
Commit
c3473496
authored
Aug 23, 2013
by
Naoki Kambe
Browse files
[2781] use for-loop instead of while-loop for avoiding from rewriting the iterator
parent
ad4c8681
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/stats/stats.py.in
View file @
c3473496
...
...
@@ -343,11 +343,8 @@ class Stats:
module, skips it and goes to collect from the next module."""
# start receiving statistics data
_statistics_data = []
_sequences = sequences[:]
while len(_sequences) > 0:
(module_name, seq) = (None, None)
for (module_name, seq) in sequences:
try:
(module_name, seq) = _sequences.pop(0)
answer, env = self.cc_session.group_recvmsg(False, seq)
if answer:
rcode, args = isc.config.ccsession.parse_answer(answer)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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