mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-04 18:29:19 +02:00
allow py27 still to pass ... maybe it's getting time drop it?
This commit is contained in:
parent
6af6a195db
commit
4717bdf5b6
1 changed files with 4 additions and 1 deletions
|
@ -18,7 +18,10 @@ class Message(object):
|
|||
:class:`deltachat.chatting.Chat`.
|
||||
"""
|
||||
_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
|
||||
def _dc_msg(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue