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)
| 2811 | |
| 2812 | |
| 2813 | def IsBlankLine(line): |
| 2814 | """Returns true if the given line is blank. |
| 2815 | |
| 2816 | We consider a line to be blank if the line is empty or consists of |
| 2817 | only white spaces. |
| 2818 | |
| 2819 | Args: |
| 2820 | line: A line of a string. |
| 2821 | |
| 2822 | Returns: |
| 2823 | True, if the given line is blank. |
| 2824 | """ |
| 2825 | return not line or line.isspace() |
| 2826 | |
| 2827 | |
| 2828 | def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line, |
no outgoing calls
no test coverage detected