mercurial/wireproto.py
changeset 23848 c5456b64eb07
parent 23591 414374cfb531
child 23878 37a92908a382
equal deleted inserted replaced
23847:71402bb8d8b2 23848:c5456b64eb07
   170     if l:
   170     if l:
   171         return map(bin, l.split(sep))
   171         return map(bin, l.split(sep))
   172     return []
   172     return []
   173 
   173 
   174 def encodelist(l, sep=' '):
   174 def encodelist(l, sep=' '):
   175     return sep.join(map(hex, l))
   175     try:
       
   176         return sep.join(map(hex, l))
       
   177     except TypeError:
       
   178         print l
       
   179         raise
   176 
   180 
   177 # batched call argument encoding
   181 # batched call argument encoding
   178 
   182 
   179 def escapearg(plain):
   183 def escapearg(plain):
   180     return (plain
   184     return (plain