##// END OF EJS Templates
wireprotov2peer: rewrite character traversal to use slices...
Gregory Szorc -
r41423:e6c1c647 default
parent child Browse files
Show More
@@ -510,7 +510,7 b' def decodeknown(objs):'
510 # Bytestring where each byte is a 0 or 1.
510 # Bytestring where each byte is a 0 or 1.
511 raw = next(objs)
511 raw = next(objs)
512
512
513 return [True if c == '1' else False for c in raw]
513 return [True if raw[i:i + 1] == b'1' else False for i in range(len(raw))]
514
514
515 def decodelistkeys(objs):
515 def decodelistkeys(objs):
516 # Map with bytestring keys and values.
516 # Map with bytestring keys and values.
General Comments 0
You need to be logged in to leave comments. Login now