diff Python/formatter_unicode.c @ 47393:0da27fdf0192

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:19 +0000
parents 5355337709e1
children 2cde0d003ffc
line wrap: on
line diff
--- a/Python/formatter_unicode.c	Fri May 30 12:05:02 2008 +0000
+++ b/Python/formatter_unicode.c	Fri May 30 18:10:19 2008 +0000
@@ -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"