cleanup for core.misc and core.netns

This commit is contained in:
bharnden 2018-10-11 16:01:17 -07:00
parent 05a5574155
commit eb04e0a79f
7 changed files with 29 additions and 29 deletions

View file

@ -293,10 +293,10 @@ def file_demunge(pathname, header):
start = None
end = None
for i in range(len(lines)):
if lines[i] == "# BEGIN %s\n" % header:
for i, line in enumerate(lines):
if line == "# BEGIN %s\n" % header:
start = i
elif lines[i] == "# END %s\n" % header:
elif line == "# END %s\n" % header:
end = i + 1
if start is None or end is None: