Commit c3473496 authored by Naoki Kambe's avatar Naoki Kambe
Browse files

[2781] use for-loop instead of while-loop for avoiding from rewriting the iterator

parent ad4c8681
......@@ -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)
......
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