Skip to content

Commit 53c81fd

Browse files
authored
Merge pull request #1898 from ales-erjavec/fixes/serialize-literal-bytes
[FIX]canvas/readwrite: Fix byte literal serialization
2 parents e01a903 + c995430 commit 53c81fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orange/canvas/scheme/readwrite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ def literal_dumps(obj, prettyprint=False, indent=4):
10041004
NoneType = type(None)
10051005

10061006
def check(obj):
1007-
if type(obj) in [int, int, float, bool, NoneType, str, str]:
1007+
if type(obj) in [int, float, bool, NoneType, str, bytes]:
10081008
return True
10091009

10101010
if id(obj) in memo:

0 commit comments

Comments
 (0)