Show More
@@ -15,7 +15,9 b' import pushkey as pushkeymod' | |||||
15 | # list of nodes encoding / decoding |
|
15 | # list of nodes encoding / decoding | |
16 |
|
16 | |||
17 | def decodelist(l, sep=' '): |
|
17 | def decodelist(l, sep=' '): | |
18 | return map(bin, l.split(sep)) |
|
18 | if l: | |
|
19 | return map(bin, l.split(sep)) | |||
|
20 | return [] | |||
19 |
|
21 | |||
20 | def encodelist(l, sep=' '): |
|
22 | def encodelist(l, sep=' '): | |
21 | return sep.join(map(hex, l)) |
|
23 | return sep.join(map(hex, l)) |
General Comments 0
You need to be logged in to leave comments.
Login now