File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1945,13 +1945,11 @@ PyDec_SetCurrentContext(PyObject *self, PyObject *v)
19451945static PyObject *
19461946init_current_context (decimal_state * state )
19471947{
1948- mpd_context_t * ctx ;
19491948 PyObject * tl_context = context_copy (state , state -> default_context_template );
19501949 if (tl_context == NULL ) {
19511950 return NULL ;
19521951 }
1953- ctx = CTX (tl_context );
1954- ctx -> status = 0 ;
1952+ CTX (tl_context )-> status = 0 ;
19551953
19561954 PyObject * tok = PyContextVar_Set (state -> current_context_var , tl_context );
19571955 if (tok == NULL ) {
@@ -2012,8 +2010,7 @@ PyDec_SetCurrentContext(PyObject *self, PyObject *v)
20122010 if (v == NULL ) {
20132011 return NULL ;
20142012 }
2015- mpd_context_t * ctx = CTX (v );
2016- ctx -> status = 0 ;
2013+ CTX (v )-> status = 0 ;
20172014 }
20182015 else {
20192016 Py_INCREF (v );
You can’t perform that action at this time.
0 commit comments