Remove a few print statements.

This commit is contained in:
Dave Halter
2017-04-01 12:43:57 +02:00
parent 1fd10d978d
commit 281d6a87a0
4 changed files with 6 additions and 11 deletions
-2
View File
@@ -320,9 +320,7 @@ class Evaluator(object):
elif typ == 'eval_input':
types = self._eval_element_not_cached(context, element.children[0])
elif typ == 'annassign':
print(element.children[1])
types = pep0484._evaluate_for_annotation(context, element.children[1])
print('xxx')
else:
types = precedence.calculate_children(self, context, element.children)
debug.dbg('eval_element result %s', types)
-1
View File
@@ -82,7 +82,6 @@ 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)
+1 -1
View File
@@ -284,7 +284,7 @@ def get_global_filters(evaluator, context, until_position, origin_scope):
First we get the names names from the function scope.
>>> no_unicode_pprint(filters[0])
<ParserTreeFilter: <ModuleContext: <Module: None@2-5>>>
<ParserTreeFilter: <ModuleContext: @2-5>>
>>> sorted(str(n) for n in filters[0].values())
['<TreeNameDefinition: func@(3, 4)>', '<TreeNameDefinition: x@(2, 0)>']
>>> filters[0]._until_position