From: Alex Gaynor Date: Mon, 1 Apr 2013 06:20:46 +0000 (-0700) Subject: is should not be used for comparing numbers X-Git-Tag: v1.2.1~30^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39acf1dbd250df61ebfa7871384cd73cb6669c6d;p=services%2Fpython-requests.git is should not be used for comparing numbers --- diff --git a/requests/models.py b/requests/models.py index 6ed2b59..2850950 100644 --- a/requests/models.py +++ b/requests/models.py @@ -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()