Merge branch 'develop' into asyncio-dev
# Conflicts: # pyrogram/__init__.py
This commit is contained in:
commit
2f3dc3f39e
@ -16,7 +16,7 @@
|
|||||||
# You should have received a copy of the GNU Lesser General Public License
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
__version__ = "0.17.0-async"
|
__version__ = "0.17.1-async"
|
||||||
__license__ = "GNU Lesser General Public License v3 or later (LGPLv3+)"
|
__license__ = "GNU Lesser General Public License v3 or later (LGPLv3+)"
|
||||||
__copyright__ = "Copyright (C) 2017-2020 Dan <https://github.com/delivrance>"
|
__copyright__ = "Copyright (C) 2017-2020 Dan <https://github.com/delivrance>"
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
# You should have received a copy of the GNU Lesser General Public License
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import re
|
import typing
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from json import dumps
|
from json import dumps
|
||||||
@ -48,7 +48,9 @@ class Object(metaclass=Meta):
|
|||||||
if isinstance(obj, bytes):
|
if isinstance(obj, bytes):
|
||||||
return repr(obj)
|
return repr(obj)
|
||||||
|
|
||||||
if isinstance(obj, re.Match):
|
# https://t.me/pyrogramchat/167281
|
||||||
|
# Instead of re.Match, which breaks for python <=3.6
|
||||||
|
if isinstance(obj, typing.Match):
|
||||||
return repr(obj)
|
return repr(obj)
|
||||||
|
|
||||||
return OrderedDict(
|
return OrderedDict(
|
||||||
|
Loading…
Reference in New Issue
Block a user