aboutsummaryrefslogtreecommitdiff
path: root/run_project_tests.py
diff options
context:
space:
mode:
authorMichael Hirsch <scivision@users.noreply.github.com>2020-07-12 09:13:00 -0400
committerMichael Hirsch <scivision@users.noreply.github.com>2020-07-12 09:13:00 -0400
commit7851495064521b179b2fd02fdc73e3d55da4ae86 (patch)
tree0c62a8e5cb6f7b464600c3f29b186a7dc86fd4bd /run_project_tests.py
parent895de87b9069d1fca51c3550fe7d113a43f9e586 (diff)
downloadmeson-7851495064521b179b2fd02fdc73e3d55da4ae86.zip
meson-7851495064521b179b2fd02fdc73e3d55da4ae86.tar.gz
meson-7851495064521b179b2fd02fdc73e3d55da4ae86.tar.bz2
remove redundant syntax
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-xrun_project_tests.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/run_project_tests.py b/run_project_tests.py
index 5445e01..793c844 100755
--- a/run_project_tests.py
+++ b/run_project_tests.py
@@ -361,11 +361,10 @@ def _run_ci_include(args: T.List[str]) -> str:
if not args:
return 'At least one parameter required'
try:
- file_path = Path(args[0])
- data = file_path.open(errors='ignore', encoding='utf-8').read()
+ data = Path(args[0]).read_text(errors='ignore', encoding='utf-8')
return 'Included file {}:\n{}\n'.format(args[0], data)
except Exception:
- return 'Failed to open {} ({})'.format(args[0])
+ return 'Failed to open {}'.format(args[0])
ci_commands = {
'ci_include': _run_ci_include