[rtems-tools commit] check.py: Fix incorrect use of os.linesep
Joel Sherrill
joel at rtems.org
Wed Sep 15 15:52:03 UTC 2021
Module: rtems-tools
Branch: master
Commit: c6870de7923a07d4a1293a0268574df9103316a1
Changeset: http://git.rtems.org/rtems-tools/commit/?id=c6870de7923a07d4a1293a0268574df9103316a1
Author: Ryan Long <ryan.long at oarcorp.com>
Date: Tue Sep 14 11:17:24 2021 -0400
check.py: Fix incorrect use of os.linesep
Replaced a couple of calls to os.linesep() with os.linesep because
os.linesep() does not exist.
---
tester/rt/check.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tester/rt/check.py b/tester/rt/check.py
index 95fa47e..c01c25d 100755
--- a/tester/rt/check.py
+++ b/tester/rt/check.py
@@ -966,13 +966,13 @@ class builder:
def _create_config(self, job, commands):
filename = 'config-%s-%s-%s.ini' % (job.arch, job.bsp, job.build)
cfg_file = open(path.join(self.rtems, filename),'w+')
- cfg_file.write('[%s/%s]' + os.linsep() % (job.arch, job.bsp))
+ cfg_file.write('[%s/%s]' % (job.arch, job.bsp) + os.linesep)
new_cfg_cmds = []
for option in commands['configure'].split():
if 'waf' in option or '--' in option or 'configure' in option:
new_cfg_cmds += [option]
else:
- cfg_file.write(option + os.linesep())
+ cfg_file.write(option + os.linesep)
commands['configure'] = ' '.join(new_cfg_cmds)
cfg_file.close()
More information about the vc
mailing list