diff options
| author | Emile Anclin <emile.anclin@logilab.fr> | 2009-03-09 15:59:14 +0100 |
|---|---|---|
| committer | Emile Anclin <emile.anclin@logilab.fr> | 2009-03-09 15:59:14 +0100 |
| commit | 56b2fe9087b378b762e449dca1c7c7753184273f (patch) | |
| tree | 4d17e70932da6146623a62232736253a2e512bbe /nodes.py | |
| parent | 47aab8af02f905efecc07b1398c118f53154b153 (diff) | |
| download | astroid-git-56b2fe9087b378b762e449dca1c7c7753184273f.tar.gz | |
remove Yield's parent node if it is a Discard; testcase
--HG--
branch : _ast_compat
Diffstat (limited to 'nodes.py')
| -rw-r--r-- | nodes.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -309,8 +309,8 @@ def _get_child_sequence(self, child): if isinstance(sequence, (tuple, list)) and child in sequence: return sequence else: - msg = 'Could not found %s in %s\'s children' % (child, self) - raise ASTNGError(msg) + msg = 'Could not found %s line %d in %s\'s children line %d' + raise ASTNGError(msg % (child, child.lineno, self, self.lineno)) def replace_child(self, child, newchild): sequence = _get_child_sequence(self, child) |
