cleanup for core.misc and core.netns
This commit is contained in:
parent
05a5574155
commit
eb04e0a79f
7 changed files with 29 additions and 29 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue