summaryrefslogtreecommitdiffstats
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r--Python/bytecodes.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index f487e95..7c8ee7b 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -2765,7 +2765,7 @@ dummy_func(
GOTO_ERROR(error);
}
DECREF_INPUTS();
- res = _PyObject_CallNoArgs(enter);
+ res = _PyObject_CallNoArgsTstate(tstate, enter);
Py_DECREF(enter);
if (res == NULL) {
Py_DECREF(exit);
@@ -2774,7 +2774,6 @@ dummy_func(
}
inst(BEFORE_WITH, (mgr -- exit, res)) {
- TIER_ONE_ONLY
/* pop the context manager, push its __exit__ and the
* value returned from calling its __enter__
*/
@@ -2801,7 +2800,7 @@ dummy_func(
GOTO_ERROR(error);
}
DECREF_INPUTS();
- res = _PyObject_CallNoArgs(enter);
+ res = _PyObject_CallNoArgsTstate(tstate, enter);
Py_DECREF(enter);
if (res == NULL) {
Py_DECREF(exit);