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)
| 4039 | |
| 4040 | |
| 4041 | def IsBlankLine(line): |
| 4042 | """Returns true if the given line is blank. |
| 4043 | |
| 4044 | We consider a line to be blank if the line is empty or consists of |
| 4045 | only white spaces. |
| 4046 | |
| 4047 | Args: |
| 4048 | line: A line of a string. |
| 4049 | |
| 4050 | Returns: |
| 4051 | True, if the given line is blank. |
| 4052 | """ |
| 4053 | return not line or line.isspace() |
| 4054 | |
| 4055 | |
| 4056 | def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line, error): |
no outgoing calls
no test coverage detected
searching dependent graphs…