[PATCH] Improve Python 3 compatibility

Chris Johns chrisj at rtems.org
Tue Mar 17 10:25:22 UTC 2020


Thanks, please push.

On 17/3/20 6:34 pm, Sebastian Huber wrote:
> ---
>  tester/rt/check.py | 2 +-
>  wscript            | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tester/rt/check.py b/tester/rt/check.py
> index c7f6c23..2a38d99 100755
> --- a/tester/rt/check.py
> +++ b/tester/rt/check.py
> @@ -284,7 +284,7 @@ class warnings_errors:
>          common = warnings['common']
>          for build in builds:
>              build_warnings = warnings[build]
> -            if build is not 'common':
> +            if build != 'common':
>                  build_warnings = [w for w in build_warnings if w not in common]
>              s += textbox.row(cols_1,
>                               [' %s : %d warning(s)' % (build,
> diff --git a/wscript b/wscript
> index bd7c54d..1f5bbea 100644
> --- a/wscript
> +++ b/wscript
> @@ -135,7 +135,7 @@ def check_options(ctx, host):
>          ctx.env.CXX = '%s-g++' % (host)
>          ctx.env.AR = '%s-ar' % (host)
>          ctx.env.PYTHON = 'python'
> -    elif host is not 'native':
> +    elif host != 'native':
>          ctx.fatal('unknown host: %s' % (host));
>  
>  #
> 


More information about the devel mailing list