Better documentation of get_code.

This commit is contained in:
Dave Halter
2017-04-27 19:48:00 +02:00
parent e8718c6ce5
commit 8bd41ee887

View File

@@ -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.
"""