Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 01458c7

Browse files
committed
Remove the uses of WITHOUT_COMPLEX introduced in r75471
1 parent ba1e0f4 commit 01458c7

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

Python/compile.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,6 @@ compiler_add_o(struct compiler *c, PyObject *dict, PyObject *o)
911911
else
912912
t = PyTuple_Pack(2, o, o->ob_type);
913913
}
914-
#ifndef WITHOUT_COMPLEX
915914
else if (PyComplex_Check(o)) {
916915
Py_complex z;
917916
int real_part_zero, imag_part_zero;
@@ -945,7 +944,6 @@ compiler_add_o(struct compiler *c, PyObject *dict, PyObject *o)
945944
t = PyTuple_Pack(2, o, o->ob_type);
946945
}
947946
}
948-
#endif /* WITHOUT_COMPLEX */
949947
else {
950948
t = PyTuple_Pack(2, o, o->ob_type);
951949
}

Python/formatter_unicode.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
#define FORMAT_STRING _PyUnicode_FormatAdvanced
1010
#define FORMAT_LONG _PyLong_FormatAdvanced
1111
#define FORMAT_FLOAT _PyFloat_FormatAdvanced
12-
#ifndef WITHOUT_COMPLEX
1312
#define FORMAT_COMPLEX _PyComplex_FormatAdvanced
14-
#endif
1513

1614
#include "../Objects/stringlib/formatter.h"

0 commit comments

Comments
 (0)