diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-08-25 12:54:32 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-08-25 13:03:33 +0300 |
commit | 4a64a813e1d34e732f35d8a65147974f76395a6f (patch) | |
tree | a8da0dede5213f85e45b95047cfbdcf5427cf0b7 /contrib/python/Twisted/py3/twisted/conch/manhole.py | |
parent | e9bbee265681b79a9ef9795bdc84cf6996f9cfec (diff) | |
download | ydb-4a64a813e1d34e732f35d8a65147974f76395a6f.tar.gz |
Intermediate changes
Diffstat (limited to 'contrib/python/Twisted/py3/twisted/conch/manhole.py')
-rw-r--r-- | contrib/python/Twisted/py3/twisted/conch/manhole.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/contrib/python/Twisted/py3/twisted/conch/manhole.py b/contrib/python/Twisted/py3/twisted/conch/manhole.py index 5bf2f817a4..f552af5bbd 100644 --- a/contrib/python/Twisted/py3/twisted/conch/manhole.py +++ b/contrib/python/Twisted/py3/twisted/conch/manhole.py @@ -23,7 +23,6 @@ from typing import Type from twisted.conch import recvline from twisted.internet import defer -from twisted.python.compat import _get_async_param from twisted.python.htmlizer import TokenPrinter from twisted.python.monkey import MonkeyPatcher @@ -161,8 +160,7 @@ class ManholeInterpreter(code.InteractiveInterpreter): del self._pendingDeferreds[id(obj)] return failure - def write(self, data, isAsync=None, **kwargs): - isAsync = _get_async_param(isAsync, **kwargs) + def write(self, data, isAsync=None): self.handler.addOutput(data, isAsync) @@ -239,8 +237,7 @@ class Manhole(recvline.HistoricRecvLine): w = self.terminal.lastWrite return not w.endswith(b"\n") and not w.endswith(b"\x1bE") - def addOutput(self, data, isAsync=None, **kwargs): - isAsync = _get_async_param(isAsync, **kwargs) + def addOutput(self, data, isAsync=None): if isAsync: self.terminal.eraseLine() self.terminal.cursorBackward(len(self.lineBuffer) + len(self.ps[self.pn])) @@ -309,10 +306,6 @@ class VT102Writer: s = b"".join(self.written) return s.strip(b"\n").splitlines()[-1] - if bytes == str: - # Compat with Python 2.7 - __str__ = __bytes__ - def lastColorizedLine(source): """ |