From f8bbe7b6c144bade6f4d651ec5b135ae65a9b330 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 21 Jul 2012 17:38:16 +0200 Subject: [PATCH] Convert time object to integer (instead of string) --- src/qweechat/weechat/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qweechat/weechat/protocol.py b/src/qweechat/weechat/protocol.py index f993352..40f1a4a 100644 --- a/src/qweechat/weechat/protocol.py +++ b/src/qweechat/weechat/protocol.py @@ -186,7 +186,7 @@ class Protocol: value = self._obj_len_data(1) if value is None: return None - return str(value) + return int(str(value)) def _obj_hashtable(self): """Read a hashtable in data (type for keys + type for values + count + items)."""