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)
| 3511 | |
| 3512 | |
| 3513 | def IsBlankLine(line): |
| 3514 | """Returns true if the given line is blank. |
| 3515 | |
| 3516 | We consider a line to be blank if the line is empty or consists of |
| 3517 | only white spaces. |
| 3518 | |
| 3519 | Args: |
| 3520 | line: A line of a string. |
| 3521 | |
| 3522 | Returns: |
| 3523 | True, if the given line is blank. |
| 3524 | """ |
| 3525 | return not line or line.isspace() |
| 3526 | |
| 3527 | |
| 3528 | def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line, |
no outgoing calls
no test coverage detected