remove redundant syntax

pull/7436/head
Michael Hirsch 4 years ago
parent 895de87b90
commit 7851495064
No known key found for this signature in database
GPG Key ID: 6D23CDADAB0294F9
  1. 5
      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

Loading…
Cancel
Save