call_of_name was modified. Fixed an issue that was created earlier.

This commit is contained in:
Dave Halter committed 2015-07-01 13:58:05 +02:00
1 parent d694ab83a3
commit d739828a4b
2 files changed
+5 -1

No files matched your search

+3
View File
@@ -82,6 +82,9 @@ def call_of_name(name, cut_own_trailer=False):
You would get a node with the content ``list([]).append`` back.
This generates a copy of the original ast node.
# TODO remove cut_own_trailer option, since its always used with it. Just
# ignore it, It's not what we want anyway. Or document it better?
"""
par = name
if tree.is_node(par.parent, 'trailer'):