aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/pylint/py2_compat.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/pylint/py2_compat.py b/tests/pylint/py2_compat.py
index 5cc5b911..7e136148 100644
--- a/tests/pylint/py2_compat.py
+++ b/tests/pylint/py2_compat.py
@@ -128,10 +128,10 @@ class Py2CompatibilityChecker(BaseChecker):
if ((isinstance(cm.func, astroid.nodes.Name)
and cm.func.name.endswith("Popen")
and (node.root().scope_lookup(node.root(), "Popen")[1][0]
- ).modname == "subprocess")
+ ).modname == "subprocess")
or (isinstance(cm.func, astroid.nodes.Attribute)
- and cm.func.expr == "subprocess"
- and cm.func.attrname == "Popen")):
+ and cm.func.expr == "subprocess"
+ and cm.func.attrname == "Popen")):
self.add_message("with-popen23", node=node, confidence=HIGH)