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