Remove a block of compatibility code

even if the user makes that mistake, it does not cause problems down the
line.
This commit is contained in:
mathieui 2019-08-26 12:00:38 +02:00
parent 9be30e5291
commit 37bc1bb9b3
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -468,13 +468,6 @@ class XMLStream(asyncio.BaseProtocol):
:param wait: Time to wait for a response from the server.
"""
# Compat: docs/getting_started/sendlogout.rst has been promoting
# `disconnect(wait=True)` for ages. This doesn't mean anything to the
# schedule call below. It would fortunately be converted to `1` later
# down the call chain. Praise the implicit casts lord.
if wait == True:
wait = 2.0
self.disconnect_reason = reason
self.cancel_connection_attempt()
if self.transport: