change "inline" keyword to "here" for consistency with the other uses
This commit is contained in:
@ -139,7 +139,7 @@ void PythonImpl::command(int narg, char **arg)
|
||||
if ((narg > 1) && (strcmp(arg[0], "source") == 0)) {
|
||||
int err = -1;
|
||||
|
||||
if ((narg > 2) && (strcmp(arg[1], "inline") == 0)) {
|
||||
if ((narg > 2) && (strcmp(arg[1], "here") == 0)) {
|
||||
err = execute_string(arg[2]);
|
||||
} else {
|
||||
if (platform::file_is_readable(arg[1]))
|
||||
|
||||
@ -286,7 +286,7 @@ TEST_F(PythonPackageTest, RunSourceInline)
|
||||
{
|
||||
// execute inline python script
|
||||
auto output = CAPTURE_OUTPUT([&] {
|
||||
command("python source inline \"\"\"\n"
|
||||
command("python source here \"\"\"\n"
|
||||
"from __future__ import print_function\n"
|
||||
"print(2+2)\n"
|
||||
"\"\"\"");
|
||||
|
||||
Reference in New Issue
Block a user