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)
| 3525 | |
| 3526 | |
| 3527 | def IsBlankLine(line): |
| 3528 | """Returns true if the given line is blank. |
| 3529 | |
| 3530 | We consider a line to be blank if the line is empty or consists of |
| 3531 | only white spaces. |
| 3532 | |
| 3533 | Args: |
| 3534 | line: A line of a string. |
| 3535 | |
| 3536 | Returns: |
| 3537 | True, if the given line is blank. |
| 3538 | """ |
| 3539 | return not line or line.isspace() |
| 3540 | |
| 3541 | |
| 3542 | def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line, |
no outgoing calls
no test coverage detected