(self)
| 290 | return ' '.join(str(arg) for arg in self._error.args) |
| 291 | |
| 292 | def __str__(self): |
| 293 | if self.HasError(): |
| 294 | return self.ErrorAsStr() |
| 295 | else: |
| 296 | # Format is: {action} "{target}" ({filename}:{lineno}) |
| 297 | string = self._action |
| 298 | if self._target is not None: |
| 299 | string += f' "{self._target}"' |
| 300 | if self._filename is not None: |
| 301 | path = self._filename |
| 302 | if self._lineno is not None: |
| 303 | path += f':{self._lineno}' |
| 304 | |
| 305 | string += f' ({path})' |
| 306 | return string |
nothing calls this directly
no test coverage detected