Fix PyLint presbumit check on win.

We were passing a unicode string in the env block to subprocess.Popen which makes it unhappy. This forces the string to ascii first.

BUG=NONE
TEST=NONE


Review URL: https://chromiumcodereview.appspot.com/12255083

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@183569 0039d316-1c4b-4281-b951-d872f2087c98
parent 365eb730
......@@ -677,7 +677,7 @@ def RunPylint(input_api, output_api, white_list=None, black_list=None,
env = input_api.environ.copy()
import sys
env['PYTHONPATH'] = input_api.os_path.pathsep.join(
extra_paths_list + sys.path)
extra_paths_list + sys.path).encode('utf8')
def run_lint(files):
# We can't import pylint directly due to licensing issues, so we run
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment