Fix 3.8 syntax warning and erroneous documentation

Closes #1340 (syntax warning)
Closes #1341 (outdated docs)
This commit is contained in:
Lonami Exo
2019-12-05 11:14:02 +01:00
parent cd37478e31
commit b985dcd248
5 changed files with 4 additions and 8 deletions

View File

@@ -464,11 +464,6 @@ class AuthMethods:
phone = '+34 123 123 123'
sent = await client.send_code_request(phone)
print(sent)
if sent.phone_registered:
print('This phone has an existing account registered')
else:
print('This phone does not have an account registered')
"""
result = None
phone = utils.parse_phone(phone) or self._phone