fix unicode literal for python 3
authorKenneth Reitz <me@kennethreitz.com>
Fri, 8 Jun 2012 01:58:52 +0000 (21:58 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Fri, 8 Jun 2012 01:58:52 +0000 (21:58 -0400)
requests/models.py

index c07bee0c9c0bce578284f500cdb90c152d47c1ad..7a5869426679f99f69db02c31fdc33ae0fec69d4 100644 (file)
@@ -786,7 +786,7 @@ class Response(object):
         encoding = self.encoding
 
         if not self.content:
-            return u''
+            return str('')
 
         # Fallback to auto-detected encoding.
         if self.encoding is None: