Attach a dummy __doc__ for -c option so strings don't throw syntax error
This commit is contained in:
parent
e6ef1ea1e4
commit
9229bc0899
@ -566,6 +566,7 @@ static int runString(char * argv[], int flags, char * string) {
|
||||
findInterpreter(argv);
|
||||
krk_initVM(flags);
|
||||
krk_startModule("__main__");
|
||||
krk_attachNamedValue(&krk_currentThread.module->fields,"__doc__", NONE_VAL());
|
||||
krk_interpret(string, "<stdin>");
|
||||
krk_freeVM();
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user