is should not be used for comparing numbers

This commit is contained in:
Alex Gaynor
2013-03-31 23:20:46 -07:00
parent 59b69d1fb8
commit 39acf1dbd2
+1 -1
View File
@@ -575,7 +575,7 @@ class Response(object):
raise RuntimeError(
'The content for this response was already consumed')
if self.status_code is 0:
if self.status_code == 0:
self._content = None
else:
self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()