eric6/Utilities/ClassBrowsers/pyclbr.py

changeset 8493
da73e8e32ba7
parent 8217
385f60c94548
equal deleted inserted replaced
8492:41629677e72d 8493:da73e8e32ba7
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

eric ide

mercurial