From cc5957d56c8a8a22534cf63cfbaa271b403ecd61 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 2 Apr 2014 13:59:05 +0200 Subject: [PATCH] reverse backwords incompatibility of #393 and therefore deprecate CallSignature.module --- jedi/api/classes.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/jedi/api/classes.py b/jedi/api/classes.py index 651dd553..efd30110 100644 --- a/jedi/api/classes.py +++ b/jedi/api/classes.py @@ -668,6 +668,15 @@ class CallSignature(Definition): warnings.warn("Use name instead.", DeprecationWarning) return unicode(self._definition.name) + @property + def module(self): + """ + .. deprecated:: 0.8.0 + Use :attr:`.module_name` for the module name. + .. todo:: Remove! + """ + return self._executable.get_parent_until() + def __repr__(self): return '<%s: %s index %s>' % (type(self).__name__, self._definition, self.index)