encode/decode

This commit is contained in:
j 2014-09-09 12:08:04 +02:00
commit 1e09e70574
7 changed files with 22 additions and 16 deletions

View file

@ -8,4 +8,4 @@ def loads(*args, **kargs):
def dumps(*args, **kargs):
#print('dumps', args, kargs)
return json.dumps(*args, **kargs).encode('utf-8')
return json.dumps(*args, **kargs).encode()