Skip to content

Commit 1dffd1b

Browse files
authored
Temporarily run cpplint under python2 (#6198)
1 parent 67c333e commit 1dffd1b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/check_lint.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import logging
2424
import os
2525
import subprocess
26-
import sys
2726
import textwrap
2827

2928
from lib import checker
@@ -125,7 +124,7 @@ def _run_cpplint(options, files):
125124
scripts_dir = os.path.dirname(os.path.abspath(__file__))
126125
cpplint = os.path.join(scripts_dir, 'cpplint.py')
127126

128-
command = [sys.executable, cpplint, '--quiet']
127+
command = ['python2', cpplint, '--quiet']
129128
command.extend(options)
130129
command.extend(files)
131130

0 commit comments

Comments
 (0)