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)
| 3971 | |
| 3972 | |
| 3973 | def IsBlankLine(line): |
| 3974 | """Returns true if the given line is blank. |
| 3975 | |
| 3976 | We consider a line to be blank if the line is empty or consists of |
| 3977 | only white spaces. |
| 3978 | |
| 3979 | Args: |
| 3980 | line: A line of a string. |
| 3981 | |
| 3982 | Returns: |
| 3983 | True, if the given line is blank. |
| 3984 | """ |
| 3985 | return not line or line.isspace() |
| 3986 | |
| 3987 | |
| 3988 | def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line, error): |
no outgoing calls
no test coverage detected