diff options
author | toonn <toonn@toonn.io> | 2021-08-08 20:22:06 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2021-08-08 20:22:06 +0200 |
commit | 1f5a23a8162f695abaee062558d9b609a3f4366a (patch) | |
tree | f10100ddfea3fa3f685a8518ec1aa1e538b81ad6 /tests | |
parent | 6ec2a60b042480b848f405a89f01ec70abe22a3b (diff) | |
download | ranger-1f5a23a8162f695abaee062558d9b609a3f4366a.tar.gz |
py2_compat: Fix formatting for PEP8
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pylint/py2_compat.py | 6 |
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) |