Skip to content

Commit 2c0e3f2

Browse files
committed
Fix METH_NOARGS signature and wrap long line in sys_dir/sys_getattr
1 parent 3dff9ef commit 2c0e3f2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Python/sysmodule.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2922,12 +2922,13 @@ sys_getattr(PyObject *self, PyObject *args)
29222922
return _PyImport_GetLazyModulesSnapshot(interp);
29232923
}
29242924

2925-
PyErr_Format(PyExc_AttributeError, "module 'sys' has no attribute %R", name);
2925+
PyErr_Format(PyExc_AttributeError,
2926+
"module 'sys' has no attribute %R", name);
29262927
return NULL;
29272928
}
29282929

29292930
static PyObject *
2930-
sys_dir(PyObject *self, PyObject *args)
2931+
sys_dir(PyObject *self, PyObject *Py_UNUSED(ignored))
29312932
{
29322933
PyObject *names = PyMapping_Keys(((PyModuleObject *)self)->md_dict);
29332934
if (names == NULL) {

0 commit comments

Comments
 (0)