Skip to content

Commit 51e105e

Browse files
committed
Fixing some pylint warnings
1 parent a2d0659 commit 51e105e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pylsp/plugins/flake8_lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def run_flake8(flake8_executable, args, document):
8181
try:
8282
cmd = [flake8_executable]
8383
cmd.extend(args)
84-
p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE)
84+
p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE) # pylint: disable=consider-using-with
8585
except IOError:
8686
log.debug("Can't execute %s. Trying with '%s -m flake8'", flake8_executable, sys.executable)
8787
cmd = [sys.executable, '-m', 'flake8']

pylsp/plugins/pylint_lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def _run_pylint_stdio(pylint_executable, document, flags):
246246
cmd = [pylint_executable]
247247
cmd.extend(flags)
248248
cmd.extend(['--from-stdin', document.path])
249-
p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE)
249+
p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE) # pylint: disable=consider-using-with
250250
except IOError:
251251
log.debug("Can't execute %s. Trying with 'python -m pylint'", pylint_executable)
252252
cmd = ['python', '-m', 'pylint']

0 commit comments

Comments
 (0)