mercurial/patch.py
changeset 50621 1c810421a82f
parent 50100 e8c170a6571d
child 50622 886d05ed9a46
equal deleted inserted replaced
50620:362d5a2ffd17 50621:1c810421a82f
   166     inheader = False
   166     inheader = False
   167     cur = []
   167     cur = []
   168 
   168 
   169     mimeheaders = [b'content-type']
   169     mimeheaders = [b'content-type']
   170 
   170 
   171     if not util.safehasattr(stream, b'next'):
   171     if not util.safehasattr(stream, 'next'):
   172         # http responses, for example, have readline but not next
   172         # http responses, for example, have readline but not next
   173         stream = fiter(stream)
   173         stream = fiter(stream)
   174 
   174 
   175     for line in stream:
   175     for line in stream:
   176         cur.append(line)
   176         cur.append(line)