equal
deleted
inserted
replaced
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) |