blueloveTH преди 1 година
родител
ревизия
3caca62f2c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/interpreter/ceval.c

+ 1 - 1
src/interpreter/ceval.c

@@ -1027,7 +1027,7 @@ FrameResult VM__run_top_frame(VM* self) {
                 py_TValue* tmp = c11__at(py_TValue, &frame->co->consts, byte.arg);
                 py_TValue* tmp = c11__at(py_TValue, &frame->co->consts, byte.arg);
                 const char* string = py_tostr(tmp);
                 const char* string = py_tostr(tmp);
                 // TODO: optimize this
                 // TODO: optimize this
-                if(!py_exec(string, "<eval>", EVAL_MODE, frame->module)) goto __ERROR;
+                if(!py_exec(string, "<f-string>", EVAL_MODE, frame->module)) goto __ERROR;
                 PUSH(py_retval());
                 PUSH(py_retval());
                 DISPATCH();
                 DISPATCH();
             }
             }