diff Python/formatter_unicode.c @ 47392:47ef9a806ce9 legacy-trunk

Refactor and clean up str.format() code (and helpers) in advance of optimizations.
author Eric Smith <eric@trueblade.com>
date Fri, 30 May 2008 18:10:04 +0000
parents b7231bf6bfb7
children 551257c8058a
line wrap: on
line diff
--- a/Python/formatter_unicode.c	Fri May 30 07:54:16 2008 +0000
+++ b/Python/formatter_unicode.c	Fri May 30 18:10:04 2008 +0000
@@ -2,12 +2,12 @@
    built-in formatter for unicode.  That is, unicode.__format__(). */
 
 #include "Python.h"
-#include "formatter_unicode.h"
-
 #include "../Objects/stringlib/unicodedefs.h"
 
-#define FORMAT_STRING unicode__format__
+#define FORMAT_STRING _PyUnicode_FormatAdvanced
+
 /* don't define FORMAT_LONG and FORMAT_FLOAT, since we can live
    with only the string versions of those.  The builtin format()
    will convert them to unicode. */
+
 #include "../Objects/stringlib/formatter.h"