view Python/formatter_unicode.c @ 45944:d00a9f75d223 legacy-trunk

Revert r61650; the intent of this commit was to try and address alarm failures on some of the build slaves. As Neal points out, it's called after test_main(), so it's not going to factor into the test when run via regrtest.py (and removes the original functionality that Jeffrey wanted that would kill the test if it took longer than 3 seconds to run when executing it directly during development).
author Trent Nelson <trent.nelson@snakebite.org>
date Thu, 20 Mar 2008 00:58:44 +0000
parents b7231bf6bfb7
children 47ef9a806ce9
line wrap: on
line source

/* Implements the unicode (as opposed to string) version of the
   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__
/* 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"