# HG changeset patch # User Peter Arrenbrecht # Date 1300776002 -3600 # Node ID f4a85acef50c74eda658bce7507eb12700b07763 # Parent 3458c15ab2f03729ed9a762de11cef55ad95c385 wireproto: fix decodelist to properly return empty list Needed by tests for next patch introducing known(). diff -r 3458c15ab2f0 -r f4a85acef50c mercurial/wireproto.py --- a/mercurial/wireproto.py Tue Mar 22 07:38:32 2011 +0100 +++ b/mercurial/wireproto.py Tue Mar 22 07:40:02 2011 +0100 @@ -15,7 +15,9 @@ # list of nodes encoding / decoding def decodelist(l, sep=' '): - return map(bin, l.split(sep)) + if l: + return map(bin, l.split(sep)) + return [] def encodelist(l, sep=' '): return sep.join(map(hex, l))