[PATCH] execute.py: fix long line

Chris Johns chrisj at rtems.org
Thu Mar 19 22:22:25 UTC 2020


Thank you. Please push.

Chris

On 20/3/20 2:35 am, Gedare Bloom wrote:
> ---
>  rtemstoolkit/execute.py | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/rtemstoolkit/execute.py b/rtemstoolkit/execute.py
> index 35f616c..3a79f50 100755
> --- a/rtemstoolkit/execute.py
> +++ b/rtemstoolkit/execute.py
> @@ -576,8 +576,10 @@ if __name__ == "__main__":
>      def capture_output(text):
>          print(text, end = '')
>  
> -    cmd_shell_test = 'if "%OS%" == "Windows_NT" (echo It is WinNT) else echo Is is not WinNT'
> -    sh_shell_test = 'x="me"; if [ $x = "me" ]; then echo "It was me"; else "It was him"; fi'
> +    cmd_shell_test = ('if "%OS%" == "Windows_NT" (echo It is WinNT) '
> +                      'else echo It is not WinNT')
> +    sh_shell_test = ('x="me"; if [ $x = "me" ]; then echo "It was me"; '
> +                     'else "It was him"; fi')
>  
>      commands = {}
>      commands['windows'] = {}
> 


More information about the devel mailing list