summaryrefslogtreecommitdiffstats
path: root/Python/formatter_unicode.c
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2008-05-30 18:10:19 (GMT)
committerEric Smith <eric@trueblade.com>2008-05-30 18:10:19 (GMT)
commit4a7d76ddb51422e2adb0fb56afa5b82162837e52 (patch)
tree266a1c326d040ce45be22c4c785edec2f7f67f02 /Python/formatter_unicode.c
parenteb2c964aeb0ab0e3e01560c955cab95f8e3b92c2 (diff)
downloadcpython-4a7d76ddb51422e2adb0fb56afa5b82162837e52.zip
cpython-4a7d76ddb51422e2adb0fb56afa5b82162837e52.tar.gz
cpython-4a7d76ddb51422e2adb0fb56afa5b82162837e52.tar.bz2
Refactor and clean up str.format() code (and helpers) in advance of optimizations.
Diffstat (limited to 'Python/formatter_unicode.c')
-rw-r--r--Python/formatter_unicode.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c
index 114fe30..206b640 100644
--- a/Python/formatter_unicode.c
+++ b/Python/formatter_unicode.c
@@ -3,11 +3,11 @@
of int.__float__, etc., that take and return unicode objects */
#include "Python.h"
-#include "formatter_unicode.h"
-
#include "../Objects/stringlib/unicodedefs.h"
-#define FORMAT_STRING unicode_unicode__format__
-#define FORMAT_LONG unicode_long__format__
-#define FORMAT_FLOAT unicode_float__format__
+
+#define FORMAT_STRING _PyUnicode_FormatAdvanced
+#define FORMAT_LONG _PyLong_FormatAdvanced
+#define FORMAT_FLOAT _PyFloat_FormatAdvanced
+
#include "../Objects/stringlib/formatter.h"