From 4e6e5fcccddca2cb737fde43c8e9771192e26038 Mon Sep 17 00:00:00 2001 From: Julian Taylor Date: Fri, 24 Mar 2017 17:21:18 +0100 Subject: MAINT: remove an extra newline with the Popen based exec --- numpy/distutils/exec_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/distutils/exec_command.py') diff --git a/numpy/distutils/exec_command.py b/numpy/distutils/exec_command.py index 9df48cc27..4f309b606 100644 --- a/numpy/distutils/exec_command.py +++ b/numpy/distutils/exec_command.py @@ -269,7 +269,7 @@ def _exec_command(command, use_shell=None, use_tee = None, **env): # Another historical oddity if text[-1:] == '\n': text = text[:-1] - if use_tee: + if use_tee and text: print(text) return proc.returncode, text -- cgit v1.2.1