diff options
Diffstat (limited to 'simplejson/decoder.py')
-rw-r--r-- | simplejson/decoder.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simplejson/decoder.py b/simplejson/decoder.py index 0c3a45c..7f0b056 100644 --- a/simplejson/decoder.py +++ b/simplejson/decoder.py @@ -366,7 +366,7 @@ class JSONDecoder(object): """ if _PY3 and isinstance(s, bytes): - s = s.decode(self.encoding) + s = str(s, self.encoding) obj, end = self.raw_decode(s) end = _w(s, end).end() if end != len(s): |