Commits

Rune Halvorsen committed eb00e23

Added __str__ method to JsonImplementation class

Comments (0)

Files changed (1)

anyjson/__init__.py

 
         self.name = modinfo["modname"]
 
+    def __str__(self):
+        return "<_JsonImplementation instance using %s>" % self.name
+
     def _attempt_load(self, modname):
         """Attempt to load module name modname, returning it on success,
         throwing ImportError if module couldn't be imported"""