mirror of
https://git.rtems.org/rtems-tools/
synced 2025-07-25 08:26:49 +08:00
Improve Python 3 compatibility
This commit is contained in:
parent
bae873a5f9
commit
274981f77d
@ -284,7 +284,7 @@ class warnings_errors:
|
|||||||
common = warnings['common']
|
common = warnings['common']
|
||||||
for build in builds:
|
for build in builds:
|
||||||
build_warnings = warnings[build]
|
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]
|
build_warnings = [w for w in build_warnings if w not in common]
|
||||||
s += textbox.row(cols_1,
|
s += textbox.row(cols_1,
|
||||||
[' %s : %d warning(s)' % (build,
|
[' %s : %d warning(s)' % (build,
|
||||||
|
2
wscript
2
wscript
@ -135,7 +135,7 @@ def check_options(ctx, host):
|
|||||||
ctx.env.CXX = '%s-g++' % (host)
|
ctx.env.CXX = '%s-g++' % (host)
|
||||||
ctx.env.AR = '%s-ar' % (host)
|
ctx.env.AR = '%s-ar' % (host)
|
||||||
ctx.env.PYTHON = 'python'
|
ctx.env.PYTHON = 'python'
|
||||||
elif host is not 'native':
|
elif host != 'native':
|
||||||
ctx.fatal('unknown host: %s' % (host));
|
ctx.fatal('unknown host: %s' % (host));
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user