diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-12-08 11:54:18 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-12-08 11:54:18 +0200 |
commit | 51805a8034229236e5c5b085b969b48ca823a5f7 (patch) | |
tree | 8c19ce32c2ffa4dc553a64d40fd61d095b208d48 | |
parent | f7b0feb8200d59d16181ae64eec54739ae36f226 (diff) | |
download | astroid-1.4.0.tar.gz |
Make pylint happy.1.4.0
-rw-r--r-- | astroid/node_classes.py | 2 | ||||
-rw-r--r-- | astroid/tests/unittest_protocols.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/astroid/node_classes.py b/astroid/node_classes.py index c480ced..5b231c8 100644 --- a/astroid/node_classes.py +++ b/astroid/node_classes.py @@ -1021,7 +1021,7 @@ def const_factory(value): assert not isinstance(value, bases.NodeNG) try: return CONST_CLS[value.__class__](value) - except (KeyError, AttributeError) as exc: + except (KeyError, AttributeError): node = EmptyNode() node.object = value return node diff --git a/astroid/tests/unittest_protocols.py b/astroid/tests/unittest_protocols.py index 4f0c165..1674512 100644 --- a/astroid/tests/unittest_protocols.py +++ b/astroid/tests/unittest_protocols.py @@ -160,7 +160,7 @@ class ProtocolTests(unittest.TestCase): assigned = list(simple_mul_assnode_2.assigned_stmts()) self.assertNameNodesEqual(['c'], assigned) - def test_sequence_assigned_stmts_not_accepting_empty_node(self): + def test_sequence_assigned_stmts_not_accepting_empty_node(self): def transform(node): node.root().locals['__all__'] = [node.value] |