Skip to content

Commit 4503529

Browse files
committed
Revert "Only add sys.__getattr__ on Windows"
This reverts commit 0a69992.
1 parent 6c4bb07 commit 4503529

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Python/sysmodule.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,6 @@ sys_exit_impl(PyObject *module, PyObject *status)
977977
// This function is used to warn about the future change of sys.abiflags
978978
// from absent to a meaningful value on all platforms.
979979
// It can be removed when the change is made.
980-
#ifndef ABIFLAGS
981980
static PyObject *
982981
sys___getattr__(PyObject *module, PyObject *name)
983982
{
@@ -998,7 +997,6 @@ PyDoc_STRVAR(__getattr___doc,
998997
"\n"
999998
"Get a sys attribute by name.\n"
1000999
);
1001-
#endif
10021000

10031001

10041002
static PyObject *
@@ -2731,10 +2729,8 @@ static PyMethodDef sys_methods[] = {
27312729
SYS_EXC_INFO_METHODDEF
27322730
SYS_EXCEPTHOOK_METHODDEF
27332731
SYS_EXIT_METHODDEF
2734-
#ifndef ABIFLAGS
27352732
{"__getattr__", _PyCFunction_CAST(sys___getattr__),
27362733
METH_O, __getattr___doc},
2737-
#endif
27382734
SYS_GETDEFAULTENCODING_METHODDEF
27392735
SYS_GETDLOPENFLAGS_METHODDEF
27402736
SYS_GETALLOCATEDBLOCKS_METHODDEF

0 commit comments

Comments
 (0)