diff options
author | Rune Halvorsen <runefh@gmail.com> | 2009-07-22 23:49:42 +0200 |
---|---|---|
committer | Rune Halvorsen <runefh@gmail.com> | 2009-07-22 23:49:42 +0200 |
commit | e4dd7651189f1341f4d955da7e79fb71a145323b (patch) | |
tree | df40dabbbd91fdffe31dc9c4a55615bfdd43f62f | |
parent | 59816435ced9616abde1a41506007703df0f2fb2 (diff) | |
download | anyjson-e4dd7651189f1341f4d955da7e79fb71a145323b.tar.gz |
Added __str__ method to JsonImplementation class
-rw-r--r-- | anyjson/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/anyjson/__init__.py b/anyjson/__init__.py index 4f4fb48..40cce49 100644 --- a/anyjson/__init__.py +++ b/anyjson/__init__.py @@ -44,6 +44,9 @@ class _JsonImplementation(object): 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""" |