From c995430987c7775c6bcfd2370cccac5fd9a47eab Mon Sep 17 00:00:00 2001 From: Ales Erjavec Date: Fri, 6 Jan 2017 15:26:03 +0100 Subject: [PATCH] canvas/readwrite: Fix byte literal serialization --- Orange/canvas/scheme/readwrite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Orange/canvas/scheme/readwrite.py b/Orange/canvas/scheme/readwrite.py index accfd0005db..5efe4af2001 100644 --- a/Orange/canvas/scheme/readwrite.py +++ b/Orange/canvas/scheme/readwrite.py @@ -1004,7 +1004,7 @@ def literal_dumps(obj, prettyprint=False, indent=4): NoneType = type(None) def check(obj): - if type(obj) in [int, int, float, bool, NoneType, str, str]: + if type(obj) in [int, float, bool, NoneType, str, bytes]: return True if id(obj) in memo: