view Python/getplatform.c @ 79011:128fa8755e55 2.7

Cleanup 'k' when the creation of PySTEntryObject fails. ad3824a90261 used to decref 'k' in too many error cases.
author Christian Heimes <christian@cheimes.de>
date Wed, 12 Sep 2012 17:58:10 +0200
parents 6f6f965c5e2d
children
line wrap: on
line source


#include "Python.h"

#ifndef PLATFORM
#define PLATFORM "unknown"
#endif

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