Skip to content

Commit 5b9d1f4

Browse files
committed
address review: m->module in localcontext()
1 parent eaf037c commit 5b9d1f4

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

Modules/_decimal/_decimal.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1957,7 +1957,6 @@ _decimal_setcontext(PyObject *module, PyObject *context)
19571957
@text_signature "($module, /, ctx=None, **kwargs)"
19581958
_decimal.localcontext
19591959
1960-
self as m: self
19611960
ctx as local: object = None
19621961
*
19631962
prec: object = None
@@ -1978,15 +1977,15 @@ default context is used.
19781977
[clinic start generated code]*/
19791978

19801979
static PyObject *
1981-
_decimal_localcontext_impl(PyObject *m, PyObject *local, PyObject *prec,
1980+
_decimal_localcontext_impl(PyObject *module, PyObject *local, PyObject *prec,
19821981
PyObject *rounding, PyObject *Emin,
19831982
PyObject *Emax, PyObject *capitals,
19841983
PyObject *clamp, PyObject *flags, PyObject *traps)
1985-
/*[clinic end generated code: output=f97568232f55f5c2 input=af5c0c34dcf94cfc]*/
1984+
/*[clinic end generated code: output=9bf4e47742a809b0 input=490307b9689c3856]*/
19861985
{
19871986
PyObject *global;
19881987

1989-
decimal_state *state = get_module_state(m);
1988+
decimal_state *state = get_module_state(module);
19901989
CURRENT_CONTEXT(state, global);
19911990
if (local == Py_None) {
19921991
local = global;

Modules/_decimal/clinic/_decimal.c.h

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)