view Python/getplatform.c @ 42119:4db0a0cc57ab

Change %c format specifier for PyArg_ParseTuple() so that it accepts a unicode character (an int * must be passed as the argument). Change %c format specifier for Py_BuildValue() so that it outputs a unicode object. Fix datetime.datetime.isoformat(), so that it works if sep is a unicode character > U+00FF.
author Walter Dörwald <walter@livinglogic.de>
date Wed, 20 Jun 2007 11:02:38 +0000
parents 6f6f965c5e2d
children
line wrap: on
line source


#include "Python.h"

#ifndef PLATFORM
#define PLATFORM "unknown"
#endif

const char *
Py_GetPlatform(void)
{
	return PLATFORM;
}