Gives this object boolean behaviors (in Python 3). bool(line_source) is False if it contains the empty string or whitespace only.
(self)
| 225 | self._text = text |
| 226 | |
| 227 | def __bool__(self): |
| 228 | """ |
| 229 | Gives this object boolean behaviors (in Python 3). bool(line_source) |
| 230 | is False if it contains the empty string or whitespace only. |
| 231 | """ |
| 232 | return self._text.strip() != "" |
| 233 | |
| 234 | def __eq__(self, other): |
| 235 | return self._text == other._text |
nothing calls this directly
no outgoing calls
no test coverage detected