We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dff9ef commit 2c0e3f2Copy full SHA for 2c0e3f2
1 file changed
Python/sysmodule.c
@@ -2922,12 +2922,13 @@ sys_getattr(PyObject *self, PyObject *args)
2922
return _PyImport_GetLazyModulesSnapshot(interp);
2923
}
2924
2925
- PyErr_Format(PyExc_AttributeError, "module 'sys' has no attribute %R", name);
+ PyErr_Format(PyExc_AttributeError,
2926
+ "module 'sys' has no attribute %R", name);
2927
return NULL;
2928
2929
2930
static PyObject *
-sys_dir(PyObject *self, PyObject *args)
2931
+sys_dir(PyObject *self, PyObject *Py_UNUSED(ignored))
2932
{
2933
PyObject *names = PyMapping_Keys(((PyModuleObject *)self)->md_dict);
2934
if (names == NULL) {
0 commit comments