11#!/usr/bin/env python
22#
3- # __COPYRIGHT__
3+ # MIT License
4+ #
5+ # Copyright The SCons Foundation
46#
57# Permission is hereby granted, free of charge, to any person obtaining
68# a copy of this software and associated documentation files (the
2022# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
2123# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
2224# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23- #
24-
25- __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
2625
2726"""
2827Verify that we don't throw an exception if a stored implicit
@@ -51,7 +50,7 @@ def lister(target, source, env):
5150 for l in os.listdir(source[0]):
5251 ofp.write(l + '\\ n')
5352 else:
54- ofp.write(str( source[0]) + ' \\ n')
53+ ofp.write(f'{ source[0]} \\ n')
5554
5655builder = Builder(action=lister,
5756 source_factory=Dir,
@@ -76,6 +75,7 @@ def lister(target, source, env):
7675
7776
7877test .write ('SConstruct' , """\
78+ DefaultEnvironment(tools=[])
7979SetOption('implicit_cache', 1)
8080SetOption('max_drift', 1)
8181
@@ -86,7 +86,7 @@ def lister(target, source, env):
8686 for l in os.listdir(source[0]):
8787 ofp.write(l + '\\ n')
8888 else:
89- ofp.write(str( source[0]) + ' \\ n')
89+ ofp.write(f'{ source[0]} \\ n')
9090
9191builder = Builder(action=lister,
9292 source_factory=File)
0 commit comments