414 @rtype int |
414 @rtype int |
415 """ |
415 """ |
416 # start with zero based line after start line |
416 # start with zero based line after start line |
417 while lineno < len(lines): |
417 while lineno < len(lines): |
418 line = lines[lineno] |
418 line = lines[lineno] |
419 if line.strip(): |
419 if line.strip() and not line.lstrip().startswith("#"): |
420 # line contains some text |
420 # line contains some text and does not start with |
|
421 # a comment sign |
421 lineIndent = _indent(line.replace(line.lstrip(), "")) |
422 lineIndent = _indent(line.replace(line.lstrip(), "")) |
422 if lineIndent <= indent: |
423 if lineIndent <= indent: |
423 return lineno |
424 return lineno |
424 lineno += 1 |
425 lineno += 1 |
425 |
426 |