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 c07bee0..7a58694 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: