summaryrefslogtreecommitdiff
path: root/Python/formatter_unicode.c
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2009-04-30 01:00:33 +0000
committerEric Smith <eric@trueblade.com>2009-04-30 01:00:33 +0000
commit10704704315faecfb31e7410199d8e316490f6b1 (patch)
tree443d4182ffcca39c95bbb6bfc495a7f911d8a8b3 /Python/formatter_unicode.c
parent5a85107d9d93cd2efb0cf5a98eb8fc4bd802c8f5 (diff)
downloadcpython-10704704315faecfb31e7410199d8e316490f6b1.tar.gz
Issue #1588: Add complex.__format__.
Diffstat (limited to 'Python/formatter_unicode.c')
-rw-r--r--Python/formatter_unicode.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c
index 206b64037a..c350907da1 100644
--- a/Python/formatter_unicode.c
+++ b/Python/formatter_unicode.c
@@ -6,8 +6,9 @@
#include "../Objects/stringlib/unicodedefs.h"
-#define FORMAT_STRING _PyUnicode_FormatAdvanced
-#define FORMAT_LONG _PyLong_FormatAdvanced
-#define FORMAT_FLOAT _PyFloat_FormatAdvanced
+#define FORMAT_STRING _PyUnicode_FormatAdvanced
+#define FORMAT_LONG _PyLong_FormatAdvanced
+#define FORMAT_FLOAT _PyFloat_FormatAdvanced
+#define FORMAT_COMPLEX _PyComplex_FormatAdvanced
#include "../Objects/stringlib/formatter.h"