summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsk Solem <ask@rabbitmq.com>2012-06-21 12:47:11 +0100
committerAsk Solem <ask@rabbitmq.com>2012-06-21 12:47:11 +0100
commitc344fe5dcaeb1d8e1ad4ab4dca08457bc1f7b55c (patch)
tree6228b63ab1ff920ce8e1d8378d53bbb59d0b00f1
parent68a82b3b7979f120a965ca30e6e47ac14e05abd2 (diff)
downloadanyjson-c344fe5dcaeb1d8e1ad4ab4dca08457bc1f7b55c.tar.gz
Tests passing
-rw-r--r--anyjson/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/anyjson/__init__.py b/anyjson/__init__.py
index 15423eb..f254a42 100644
--- a/anyjson/__init__.py
+++ b/anyjson/__init__.py
@@ -59,7 +59,8 @@ class _JsonImplementation(object):
self.implementation = modinfo["modname"]
self._encode = getattr(module, modinfo["encoder"])
self._decode = getattr(module, modinfo["decoder"])
- self._filedecode = getattr(module, modinfo["filedecoder"])
+ fdec = modinfo["filedecoder"]
+ self._filedecode = fdec and getattr(module, fdec)
self._encode_error = modinfo["encerror"]
self._decode_error = modinfo["decerror"]