개정판 8ad485a1
fix LineNoTracer
Change-Id: Ie6f74cdd1cade3bc8a6cb097205e0d001e1a8bdd
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
366 | 366 |
else: |
367 | 367 |
break |
368 | 368 |
|
369 |
# clear run without items |
|
370 |
for _lineNo in self._lineNos: |
|
371 |
for index in reversed(range(len(_lineNo.runs))): |
|
372 |
if not _lineNo.runs[index].items: |
|
373 |
_lineNo.runs[index].explode() |
|
374 |
# up to here |
|
375 |
|
|
369 | 376 |
# sort line no with from,to value |
370 | 377 |
self._lineNos.sort( |
371 | 378 |
key=lambda line_no: (1 if line_no.prop('From') else 0) + (1 if line_no.prop('To') else 0), |
내보내기 Unified diff