File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -177,9 +177,9 @@ def check_output(cmd, **popen_args):
177
177
return output .decode ('utf-8' )
178
178
179
179
180
- def try_to_run (cmd ):
180
+ def try_to_run (cmd , shell = True ):
181
181
try :
182
- return check_output (cmd , shell = True )
182
+ return check_output (cmd , shell = shell )
183
183
except subprocess .CalledProcessError as e :
184
184
write (' Error running `%s`: %s' % (cmd , str (getattr (e , 'output' , str (e )))))
185
185
@@ -193,10 +193,10 @@ def run_python_coverage(args):
193
193
import coverage
194
194
except ImportError :
195
195
# Coverage is not installed on this Python. Hope it's on PATH.
196
- try_to_run (['coverage' ] + args )
196
+ try_to_run (['coverage' ] + args , shell = False )
197
197
else :
198
198
# Coverage is installed on this Python. Run it as a module.
199
- try_to_run ([sys .executable , '-m' , 'coverage' ] + args )
199
+ try_to_run ([sys .executable , '-m' , 'coverage' ] + args , shell = False )
200
200
201
201
def remove_non_ascii (data ):
202
202
try :
You can’t perform that action at this time.
0 commit comments