First version of explain. Creating a new parser was a wrong approach. Need to reimplement
This commit is contained in:
@@ -42,6 +42,9 @@ class SheerkaPickler:
|
||||
if utils.is_primitive(obj):
|
||||
return obj
|
||||
|
||||
if utils.is_type(obj):
|
||||
return str(obj)
|
||||
|
||||
if utils.is_tuple(obj):
|
||||
return {tags.TUPLE: [self.flatten(v) for v in obj]}
|
||||
|
||||
|
||||
@@ -49,6 +49,10 @@ def is_tuple(obj):
|
||||
return type(obj) is tuple
|
||||
|
||||
|
||||
def is_class(obj):
|
||||
return type(obj) is type
|
||||
|
||||
|
||||
def b64encode(data):
|
||||
"""
|
||||
Encode binary data to ascii text in base64. Data must be bytes.
|
||||
|
||||
Reference in New Issue
Block a user