From b16ae6440ad87e47592a2ffb06bd50be3d6a84e5 Mon Sep 17 00:00:00 2001 From: Mats Wichmann Date: Thu, 30 Jun 2022 13:07:01 -0600 Subject: Sider fixes Signed-off-by: Mats Wichmann --- SCons/Tool/lex.py | 2 +- test/LEX/FLEXFLAGS.py | 3 +-- test/YACC/BISONFLAGS.py | 6 ++---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/SCons/Tool/lex.py b/SCons/Tool/lex.py index 262fe25..0cf7de7 100644 --- a/SCons/Tool/lex.py +++ b/SCons/Tool/lex.py @@ -65,7 +65,7 @@ def lexEmitter(target, source, env) -> tuple: # NOTE: a filename passed to the command this way is not modified by SCons, # and so will be interpreted relative to the project top directory at # execution time, while the name added to the target list will be - # interpreted relative to the SConscript directory - a possibile mismatch. + # interpreted relative to the SConscript directory - a possible mismatch. # # These are GNU flex-only options. # TODO: recognize --outfile also? diff --git a/test/LEX/FLEXFLAGS.py b/test/LEX/FLEXFLAGS.py index 248af42..0844030 100644 --- a/test/LEX/FLEXFLAGS.py +++ b/test/LEX/FLEXFLAGS.py @@ -27,14 +27,13 @@ Test that detection of file-writing options in LEXFLAGS works. """ -import sys import sysconfig import TestSCons from TestCmd import IS_WINDOWS _python_ = TestSCons._python_ -_exe = TestSCons._exe +_exe = TestSCons._exe test = TestSCons.TestSCons() diff --git a/test/YACC/BISONFLAGS.py b/test/YACC/BISONFLAGS.py index 3259eaa..f789339 100644 --- a/test/YACC/BISONFLAGS.py +++ b/test/YACC/BISONFLAGS.py @@ -27,13 +27,11 @@ Test that detection of file-writing options in YACCFLAGS works. """ -import sys - import TestSCons from TestCmd import IS_WINDOWS _python_ = TestSCons._python_ -_exe = TestSCons._exe +_exe = TestSCons._exe if IS_WINDOWS: compiler = 'msvc' @@ -53,7 +51,7 @@ DefaultEnvironment(tools=[]) SConscript("sub/SConscript") """) -test.write(['sub', 'SConscript'], f"""\ +test.write(['sub', 'SConscript'], """\ import sys env = Environment( -- cgit v0.12