change "inline" keyword to "here" for consistency with the other uses

This commit is contained in:
Axel Kohlmeyer
2022-11-11 22:05:35 -05:00
parent 5e832aa360
commit d4bd0a74a7
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ void PythonImpl::command(int narg, char **arg)
if ((narg > 1) && (strcmp(arg[0], "source") == 0)) { if ((narg > 1) && (strcmp(arg[0], "source") == 0)) {
int err = -1; int err = -1;
if ((narg > 2) && (strcmp(arg[1], "inline") == 0)) { if ((narg > 2) && (strcmp(arg[1], "here") == 0)) {
err = execute_string(arg[2]); err = execute_string(arg[2]);
} else { } else {
if (platform::file_is_readable(arg[1])) if (platform::file_is_readable(arg[1]))

View File

@ -286,7 +286,7 @@ TEST_F(PythonPackageTest, RunSourceInline)
{ {
// execute inline python script // execute inline python script
auto output = CAPTURE_OUTPUT([&] { auto output = CAPTURE_OUTPUT([&] {
command("python source inline \"\"\"\n" command("python source here \"\"\"\n"
"from __future__ import print_function\n" "from __future__ import print_function\n"
"print(2+2)\n" "print(2+2)\n"
"\"\"\""); "\"\"\"");