summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 0194687..5ceb743 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -1885,6 +1885,19 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
PUSH(x);
if (x != NULL) continue;
break;
+
+ case MAKE_BYTES:
+ w = POP();
+ if (PyString_Check(w))
+ x = PyBytes_FromStringAndSize(
+ PyString_AS_STRING(w),
+ PyString_GET_SIZE(w));
+ else
+ x = NULL;
+ Py_DECREF(w);
+ PUSH(x);
+ if (x != NULL) continue;
+ break;
case LOAD_ATTR:
w = GETITEM(names, oparg);