Start using ContextualizedNode for py__iter__.

This commit is contained in:
Dave Halter committed 2017-03-28 01:34:07 +02:00
1 parent bb9ea54402
commit 6a9c2f8795
12 files changed
+117 -88

No files matched your search

+1
View File
@@ -82,6 +82,7 @@ def add(node_context, error_name, node, message=None, typ=Error, payload=None):
# TODO this path is probably not right
module_context = node_context.get_root_context()
print(module_context, node)
module_path = module_context.py__file__()
instance = typ(error_name, module_path, node.start_pos, message)
debug.warning(str(instance), format=False)