summaryrefslogtreecommitdiff
path: root/buildscripts/pylinters.py
diff options
context:
space:
mode:
authorMathew Robinson <chasinglogic@gmail.com>2019-02-19 10:50:57 -0500
committerMathew Robinson <chasinglogic@gmail.com>2019-04-08 14:08:49 -0400
commit8dd6d4755734ed37c1b98dfdefce3ca6bc65f1f6 (patch)
tree69e936c4953cbead2e3bae2690157c5fe75e709d /buildscripts/pylinters.py
parentc600aa9d7423eca8151daf626e2799d9a6c7b31c (diff)
downloadmongo-8dd6d4755734ed37c1b98dfdefce3ca6bc65f1f6.tar.gz
SERVER-32295 Support Python 3
Diffstat (limited to 'buildscripts/pylinters.py')
-rwxr-xr-xbuildscripts/pylinters.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/buildscripts/pylinters.py b/buildscripts/pylinters.py
index 16e987f0da8..80629ea84d8 100755
--- a/buildscripts/pylinters.py
+++ b/buildscripts/pylinters.py
@@ -1,7 +1,5 @@
#!/usr/bin/env python2
"""Extensible script to run one or more Python Linters across a subset of files in parallel."""
-from __future__ import absolute_import
-from __future__ import print_function
import argparse
import logging
@@ -135,7 +133,8 @@ def _fix_files(linters, config_dict, file_names):
sys.exit(1)
for linter in linter_instances:
- run_linter = lambda param1: lint_runner.run(linter.cmd_path + linter.linter.get_fix_cmd_args(param1)) # pylint: disable=cell-var-from-loop
+ run_linter = lambda param1: lint_runner.run(linter.cmd_path + linter.linter. # pylint: disable=cell-var-from-loop
+ get_fix_cmd_args(param1)) # pylint: disable=cell-var-from-loop
lint_clean = parallel.parallel_process([os.path.abspath(f) for f in file_names], run_linter)