##// END OF EJS Templates
wireproto: fix decodelist to properly return empty list...
Peter Arrenbrecht -
r13722:f4a85ace default
parent child Browse files
Show More
@@ -15,7 +15,9 b' import pushkey as pushkeymod'
15 15 # list of nodes encoding / decoding
16 16
17 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 22 def encodelist(l, sep=' '):
21 23 return sep.join(map(hex, l))
General Comments 0
You need to be logged in to leave comments. Login now