From 34e1ae4b8f464e09b87900fdef3a9823f4fa8971 Mon Sep 17 00:00:00 2001 From: Joscha Date: Sun, 3 Sep 2017 12:27:28 +0000 Subject: [PATCH] Fix connection reply bug Now, packet ids are always strings, except for self._pid. --- yaboli/connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yaboli/connection.py b/yaboli/connection.py index 821f302..b934c15 100644 --- a/yaboli/connection.py +++ b/yaboli/connection.py @@ -49,10 +49,10 @@ class Connection: if self.stopped: raise ConnectionClosed - pid = self._new_pid() + pid = str(self._new_pid()) packet = { "type": ptype, - "id": str(pid) + "id": pid } if data: packet["data"] = data