diff options
Diffstat (limited to 'anyjson/__init__.py')
-rw-r--r-- | anyjson/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/anyjson/__init__.py b/anyjson/__init__.py index 2238a4c..d0a243c 100644 --- a/anyjson/__init__.py +++ b/anyjson/__init__.py @@ -94,7 +94,7 @@ class _JsonImplementation(object): ValueError if the string could not be parsed.""" # uses StringIO to support buffer objects. try: - if self._filedecode: + if self._filedecode and not isinstance(s, basestring): return self._filedecode(StringIO(s)) return self._decode(s) except self._decode_error, exc: |