##// END OF EJS Templates
patch: use safehasattr instead of hasattr
Augie Fackler -
r14966:0588fb0e default
parent child Browse files
Show More
@@ -126,7 +126,7 def split(stream):
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
General Comments 0
You need to be logged in to leave comments. Login now