From 03b02f98300537093ab4f7068b37e4be4d44baa7 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 31 Mar 2014 12:44:47 +0200 Subject: [PATCH] temporary support for unicode in Documentation objects. We still need to discuss the exact details of that class #392 --- jedi/api/classes.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jedi/api/classes.py b/jedi/api/classes.py index f620f534..19be914a 100644 --- a/jedi/api/classes.py +++ b/jedi/api/classes.py @@ -668,6 +668,12 @@ class Documentation(object): self._definition = definition def __str__(self): + return self.full() + + def __unicode__(self): + return self.full() + + def full(self): try: return self._definition.doc except AttributeError: