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)
| 3018 | |
| 3019 | |
| 3020 | def IsBlankLine(line): |
| 3021 | """Returns true if the given line is blank. |
| 3022 | |
| 3023 | We consider a line to be blank if the line is empty or consists of |
| 3024 | only white spaces. |
| 3025 | |
| 3026 | Args: |
| 3027 | line: A line of a string. |
| 3028 | |
| 3029 | Returns: |
| 3030 | True, if the given line is blank. |
| 3031 | """ |
| 3032 | return not line or line.isspace() |
| 3033 | |
| 3034 | |
| 3035 | def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line, |
no outgoing calls
no test coverage detected