]> granicus.if.org Git - python/commitdiff
Remove the uses of WITHOUT_COMPLEX introduced in r75471
authorMark Dickinson <dickinsm@gmail.com>
Sun, 18 Oct 2009 16:41:32 +0000 (16:41 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 18 Oct 2009 16:41:32 +0000 (16:41 +0000)
Python/compile.c
Python/formatter_unicode.c

index 081268bcacc5a7ab3fd1411b9484d8ee27df0cfd..2bb9beb3d8fe8b900b3629e110f717d2636e312c 100644 (file)
@@ -911,7 +911,6 @@ compiler_add_o(struct compiler *c, PyObject *dict, PyObject *o)
                else
                        t = PyTuple_Pack(2, o, o->ob_type);
        }
-#ifndef WITHOUT_COMPLEX
        else if (PyComplex_Check(o)) {
                Py_complex z;
                int real_part_zero, imag_part_zero;
@@ -945,7 +944,6 @@ compiler_add_o(struct compiler *c, PyObject *dict, PyObject *o)
                        t = PyTuple_Pack(2, o, o->ob_type);
                }
         }
-#endif /* WITHOUT_COMPLEX */
        else {
                t = PyTuple_Pack(2, o, o->ob_type);
         }
index 79cb5f919265c979ad626654d595e950c7d63d4b..c350907da189c8999471deb809ca712221f84909 100644 (file)
@@ -9,8 +9,6 @@
 #define FORMAT_STRING  _PyUnicode_FormatAdvanced
 #define FORMAT_LONG    _PyLong_FormatAdvanced
 #define FORMAT_FLOAT   _PyFloat_FormatAdvanced
-#ifndef WITHOUT_COMPLEX
 #define FORMAT_COMPLEX _PyComplex_FormatAdvanced
-#endif
 
 #include "../Objects/stringlib/formatter.h"