projects
/
ton
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added string and list parsing
[ton]
/
don
/
__init__.py
1
import collections
2
import struct
3
4
from don import binary
5
from don import string
6
7
def binary_to_string(b):
8
return string.serialize(binary.deserialize(b))
9
10
def string_to_binary(s):
11
return binary.serialize(string.deserialize(s))