Improve Python 3 compatibility

This commit is contained in:
Sebastian Huber 2020-03-17 08:34:37 +01:00
parent bae873a5f9
commit 274981f77d
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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));
#