diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-03-17 08:34:37 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-03-17 11:36:05 +0100 |
commit | 274981f77d648ceb87f84cdeaec33a58dfd37385 (patch) | |
tree | 1b13c55de4d562d32efd5fedf82246d59f0dcc62 | |
parent | Move mkimage.py to install_files so chmod is preserved and installed in bin/ (diff) | |
download | rtems-tools-274981f77d648ceb87f84cdeaec33a58dfd37385.tar.bz2 |
Improve Python 3 compatibility
-rwxr-xr-x | tester/rt/check.py | 2 | ||||
-rw-r--r-- | 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, @@ -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)); # |