Returns true if the given line is blank. We consider a line to be blank if the line is empty or consists of only white spaces. Args: line: A line of a string. Returns: True, if the given line is blank.
(line)
| 2367 | |
| 2368 | |
| 2369 | def IsBlankLine(line): |
| 2370 | """Returns true if the given line is blank. |
| 2371 | |
| 2372 | We consider a line to be blank if the line is empty or consists of |
| 2373 | only white spaces. |
| 2374 | |
| 2375 | Args: |
| 2376 | line: A line of a string. |
| 2377 | |
| 2378 | Returns: |
| 2379 | True, if the given line is blank. |
| 2380 | """ |
| 2381 | return not line or line.isspace() |
| 2382 | |
| 2383 | |
| 2384 | def CheckForFunctionLengths(filename, clean_lines, linenum, |
no outgoing calls
no test coverage detected