Skip to content

Commit

Permalink
coding
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasheinrich committed Jan 16, 2018
1 parent a916114 commit 19b05e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packtivity/typedleafs.py
Expand Up @@ -27,7 +27,7 @@ def __init__(self, spec):
self.leaf_magic = '___leaf___'

def leaf_encode(self,obj):
return self.leaf_magic + base64.b64encode(json.dumps(self.dumper(obj)).encode('utf-8'))
return self.leaf_magic + base64.b64encode(json.dumps(self.dumper(obj)).encode('utf-8')).decode('utf-8')

@staticmethod
def leaf_decode(str):
Expand Down

0 comments on commit 19b05e7

Please sign in to comment.