summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Cristau <julien.cristau@logilab.fr>2013-06-19 13:51:14 +0200
committerJulien Cristau <julien.cristau@logilab.fr>2013-06-19 13:51:14 +0200
commit2a8aa71a0133a34ca28d81117586ba45d6081cdb (patch)
treeccf76488c79a05c263ed79afdab7080acda91f44
parentd460b1640f0636ceb92a5a690a162757fa871de1 (diff)
downloadastroid-git-2a8aa71a0133a34ca28d81117586ba45d6081cdb.tar.gz
Fix language in a couple of error messages
-rw-r--r--bases.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bases.py b/bases.py
index 13c029ed..d8b1b8cb 100644
--- a/bases.py
+++ b/bases.py
@@ -458,7 +458,7 @@ class NodeNG(object):
if isinstance(node_or_sequence, (tuple, list)) and child in node_or_sequence:
return node_or_sequence
else:
- msg = 'Could not found %s in %s\'s children'
+ msg = 'Could not find %s in %s\'s children'
raise AstroidError(msg % (repr(child), repr(self)))
def locate_child(self, child):
@@ -470,7 +470,7 @@ class NodeNG(object):
return field, child
if isinstance(node_or_sequence, (tuple, list)) and child in node_or_sequence:
return field, node_or_sequence
- msg = 'Could not found %s in %s\'s children'
+ msg = 'Could not find %s in %s\'s children'
raise AstroidError(msg % (repr(child), repr(self)))
# FIXME : should we merge child_sequence and locate_child ? locate_child
# is only used in are_exclusive, child_sequence one time in pylint.