Commits

Ask Solem  committed 0716ddb Draft

Tests passing

  • Participants
  • Parent commits b9edcf7

Comments (0)

Files changed (1)

File anyjson/__init__.py

         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"]