summaryrefslogtreecommitdiff
path: root/Python/formatter_unicode.c
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2008-05-30 18:10:19 +0000
committerEric Smith <eric@trueblade.com>2008-05-30 18:10:19 +0000
commit8dae7899f7bee2867393090b43f5200ed8db26d8 (patch)
tree973b00b1d51ef3ce8f2cf7fe1f69750bfb895d20 /Python/formatter_unicode.c
parentccbad18d5ffb6a672f347a74c3e77ccc2767da0e (diff)
downloadcpython-8dae7899f7bee2867393090b43f5200ed8db26d8.tar.gz
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 114fe3016b..206b64037a 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"