8000 Merge pull request #8895 from eric-wieser/fix-exec_command-error · juliantaylor/numpy@d21cecf · GitHub
[go: up one dir, main page]

8000
Skip to content

Commit d21cecf

Browse files
authored
Merge pull request numpy#8895 from eric-wieser/fix-exec_command-error
BUG: return values of exec_command were swapped
2 parents 77ff3d6 + 6cbc31f commit d21cecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/distutils/exec_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def _exec_command(command, use_shell=None, use_tee = None, **env):
252252
universal_newlines=True)
253253
except EnvironmentError:
254254
# Return 127, as os.spawn*() and /bin/sh do
255-
return '', 127
255+< 4865 /span>
return 127, ''
256256
text, err = proc.communicate()
257257
# Another historical oddity
258258
if text[-1:] == '\n':

0 commit comments

Comments
 (0)
0