Make it more accurate.

This commit is contained in:
Itamar Turner-Trauring 2022-06-23 12:44:17 -04:00
parent d70f583172
commit 0c99a9f7b0

View File

@ -56,8 +56,7 @@ class FoolscapOrHttp(Protocol, metaclass=PretendToBeNegotiation):
def _convert_to_negotiation(self):
"""
Convert self to a ``Negotiation`` instance, return any buffered
bytes and the transport if any.
Convert self to a ``Negotiation`` instance.
"""
self.__class__ = Negotiation # type: ignore
self.__dict__ = self._foolscap.__dict__