1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-04 10:19:16 +02:00

allow py27 still to pass ... maybe it's getting time drop it?

This commit is contained in:
holger krekel 2018-10-17 12:47:38 +02:00
parent 6af6a195db
commit 4717bdf5b6

View file

@ -18,7 +18,10 @@ class Message(object):
:class:`deltachat.chatting.Chat`. :class:`deltachat.chatting.Chat`.
""" """
_dc_context = attr.ib(validator=v.instance_of(ffi.CData)) _dc_context = attr.ib(validator=v.instance_of(ffi.CData))
id = attr.ib(validator=v.instance_of(int)) try:
id = attr.ib(validator=v.instance_of((int, long)))
except NameError: # py35
id = attr.ib(validator=v.instance_of(int))
@property @property
def _dc_msg(self): def _dc_msg(self):