view Python/getplatform.c @ 39586:2c4026769945 legacy-trunk

Handle PyString_FromInternedString() failing (unlikely, but possible). Klocwork #325 (I'm not backporting this, but if someone wants to, feel free.)
author Neal Norwitz <nnorwitz@gmail.com>
date Sat, 19 Aug 2006 04:52:03 +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;
}