Remove unused SysCommand.__json__ method (#2986)

This commit is contained in:
correctmost 2024-12-01 02:33:22 -05:00 committed by GitHub
parent fcf9658f8f
commit 507e4322d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 9 deletions

View File

@ -400,15 +400,6 @@ class SysCommand:
def __repr__(self, *args: list[Any], **kwargs: dict[str, Any]) -> str:
return self.decode('UTF-8', errors='backslashreplace') or ''
def __json__(self) -> dict[str, str | bool | list[str] | dict[str, Any] | None]:
return {
'cmd': self.cmd,
'callbacks': self._callbacks,
'peak': self.peek_output,
'environment_vars': self.environment_vars,
'session': self.session is not None
}
def create_session(self) -> bool:
"""
Initiates a :ref:`SysCommandWorker` session in this class ``.session``.