From 10dd0f6777edf82c91794ad80523887dcbc6ef37 Mon Sep 17 00:00:00 2001 From: wim glenn Date: Thu, 31 Dec 2020 02:10:09 -0600 Subject: [PATCH 1/3] remove unused import --- caniusepython3/command.py | 1 - 1 file changed, 1 deletion(-) diff --git a/caniusepython3/command.py b/caniusepython3/command.py index 3fac3f5..b930816 100644 --- a/caniusepython3/command.py +++ b/caniusepython3/command.py @@ -17,7 +17,6 @@ import setuptools import sys -import caniusepython3 as ciu import caniusepython3.__main__ as ciu_main from caniusepython3 import pypi From f851aa8dd34cf7c639a34bcea3e8220800d63ce8 Mon Sep 17 00:00:00 2001 From: wim glenn Date: Thu, 31 Dec 2020 02:18:10 -0600 Subject: [PATCH 2/3] extract_node has moved --- caniusepython3/test/test_pylint_checker.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/caniusepython3/test/test_pylint_checker.py b/caniusepython3/test/test_pylint_checker.py index a96c975..377bc5b 100644 --- a/caniusepython3/test/test_pylint_checker.py +++ b/caniusepython3/test/test_pylint_checker.py @@ -21,7 +21,7 @@ import sys import tokenize - from astroid import test_utils + from astroid import builder from pylint import testutils from pylint.testutils import CheckerTestCase @@ -58,7 +58,7 @@ class StrictPython3CheckerTest(CheckerTestCase): CHECKER_CLASS = StrictPython3Checker def check_not_builtin(self, builtin_name, message): - node = test_utils.extract_node(builtin_name + ' #@') + node = builder.extract_node(builtin_name + ' #@') with self.assertAddsMessages(testutils.Message(message, node=node)): self.checker.visit_name(node) @@ -67,7 +67,7 @@ def test_open_builtin(self): self.check_not_builtin('open', 'open-builtin') def test_dict_comprehension(self): - node = test_utils.extract_node('{e:"1" for e in ["one", "two"]} #@') + node = builder.extract_node('{e:"1" for e in ["one", "two"]} #@') with self.assertNoMessages(): self.checker.visit_name(node) From ae3e870ab8712026dddb01407fe150ac8e75eace Mon Sep 17 00:00:00 2001 From: wim glenn Date: Thu, 31 Dec 2020 02:39:03 -0600 Subject: [PATCH 3/3] fix logging issue in dependencies.py --- caniusepython3/dependencies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caniusepython3/dependencies.py b/caniusepython3/dependencies.py index 3b74d8b..118baa6 100644 --- a/caniusepython3/dependencies.py +++ b/caniusepython3/dependencies.py @@ -93,7 +93,7 @@ def supports_py3(project_name): # can't port. del reasons[parent] continue - log.info('Dependencies of {0}: {1}'.format(project, deps)) + log.info('Dependencies of {0}: {1}'.format(parent, deps)) unchecked_deps = [] for dep in deps: if dep in evaluated: