mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Fix 3.8 syntax warning and erroneous documentation
Closes #1340 (syntax warning) Closes #1341 (outdated docs)
This commit is contained in:
@@ -75,7 +75,7 @@ class MessageParseMethods:
|
||||
"""
|
||||
Returns a (parsed message, entities) tuple depending on ``parse_mode``.
|
||||
"""
|
||||
if parse_mode is ():
|
||||
if parse_mode == ():
|
||||
parse_mode = self._parse_mode
|
||||
else:
|
||||
parse_mode = utils.sanitize_parse_mode(parse_mode)
|
||||
|
Reference in New Issue
Block a user