From 8bd41ee887c8d48fb5fdc0edb5217e969912335a Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 27 Apr 2017 19:48:00 +0200 Subject: [PATCH] Better documentation of get_code. --- jedi/parser/tree.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/jedi/parser/tree.py b/jedi/parser/tree.py index 7449be39..2f3ceaf3 100644 --- a/jedi/parser/tree.py +++ b/jedi/parser/tree.py @@ -132,9 +132,13 @@ class _NodeOrLeaf(object): @abstractmethod def get_code(self, normalized=False, include_prefix=True): """ - Returns x. + Returns the code that was the input of the parser. - :param include_prefix: The module in which this Python object locates. + If a normalizer is given, the returned code will be normalized and will + not be equal to the input. + + :param include_prefix: Removes the prefix (whitespace and comments) of e.g. a statement. + :param normalized: Deprecated. Please don't use. Will be replaced with something more powerful. """