diff options
| author | Claudiu Popa <pcmanticore@gmail.com> | 2016-01-03 10:40:55 +0200 | 
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2016-01-03 10:40:55 +0200 | 
| commit | 3ed16dc880ade848ec987c4b5b0fef87cf980b4d (patch) | |
| tree | c039edb48b3bc8e944d4ec27376be4fe1a8263e2 /astroid/tree/node_classes.py | |
| parent | 478e05b9b20c726d3ed7c46dc25155aef45aacd2 (diff) | |
| download | astroid-git-3ed16dc880ade848ec987c4b5b0fef87cf980b4d.tar.gz | |
Add specific checking for features instead of catching AttributeError in inference
Certain blocks were protected with an AttributeError handler in order to
ignore certain nodes which didn't provide an expected feature, such
as .getattr and .getitem. This was replaced with an attribute check
instead, in order to limit the scope of the exception handling, which
could have concealed other bugs. We could check, in the future,
for protocol classes instead, but in short term, this is the best
approach. Closes #294
Diffstat (limited to 'astroid/tree/node_classes.py')
0 files changed, 0 insertions, 0 deletions
