diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-08-11 00:09:46 +0300 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-08-11 00:09:46 +0300 |
commit | 27b06a7f43447b00bb35ccd053dd005bd960624b (patch) | |
tree | 74d8560437ea17b7051e5bf4394998bd1a0cd6c3 | |
parent | bd3ec0e8b82946e8d2a0e30225213edc3e657f16 (diff) | |
download | pylint-27b06a7f43447b00bb35ccd053dd005bd960624b.tar.gz |
Use astroid.YES instead of using it from astroid.bases (it was moved anyway)
-rw-r--r-- | pylint/pyreverse/inspector.py | 2 | ||||
-rw-r--r-- | pylint/test/unittest_pyreverse_inspector.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pylint/pyreverse/inspector.py b/pylint/pyreverse/inspector.py index 208f405..b916008 100644 --- a/pylint/pyreverse/inspector.py +++ b/pylint/pyreverse/inspector.py @@ -62,7 +62,7 @@ def interfaces(node, herited=True, handler_func=_iface_hdlr): found = set() missing = False for iface in node_classes.unpack_infer(implements): - if iface is bases.YES: + if iface is astroid.YES: missing = True continue if iface not in found and handler_func(iface): diff --git a/pylint/test/unittest_pyreverse_inspector.py b/pylint/test/unittest_pyreverse_inspector.py index c555d91..18823b5 100644 --- a/pylint/test/unittest_pyreverse_inspector.py +++ b/pylint/test/unittest_pyreverse_inspector.py @@ -74,7 +74,7 @@ class LinkerTest(unittest.TestCase): self.assertTrue(isinstance(type_dict['relation'][0], bases.Instance), type_dict['relation']) self.assertEqual(type_dict['relation'][0].name, 'DoNothing') - self.assertIs(type_dict['_id'][0], bases.YES) + self.assertIs(type_dict['_id'][0], astroid.YES) def test_concat_interfaces(self): cls = test_utils.extract_node(''' |