mercurial/patch.py
changeset 14966 0588fb0e2e8d
parent 14832 d60e4f227d75
child 15089 bfe903b1ff4e
equal deleted inserted replaced
14965:194b043dfa51 14966:0588fb0e2e8d
   124     inheader = False
   124     inheader = False
   125     cur = []
   125     cur = []
   126 
   126 
   127     mimeheaders = ['content-type']
   127     mimeheaders = ['content-type']
   128 
   128 
   129     if not hasattr(stream, 'next'):
   129     if not util.safehasattr(stream, 'next'):
   130         # http responses, for example, have readline but not next
   130         # http responses, for example, have readline but not next
   131         stream = fiter(stream)
   131         stream = fiter(stream)
   132 
   132 
   133     for line in stream:
   133     for line in stream:
   134         cur.append(line)
   134         cur.append(line)