From 4717bdf5b6eebde9c974f7d4f73590e890c75d35 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Wed, 17 Oct 2018 12:47:38 +0200 Subject: [PATCH] allow py27 still to pass ... maybe it's getting time drop it? --- python/src/deltachat/message.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/src/deltachat/message.py b/python/src/deltachat/message.py index e6d299df..363e753a 100644 --- a/python/src/deltachat/message.py +++ b/python/src/deltachat/message.py @@ -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):