view Python/getplatform.c @ 80529:291406748217 3.3

- Issue #16514: Fix regression causing a traceback when sys.path[0] is None (actually, any non-string or non-bytes type).
author Barry Warsaw <barry@python.org>
date Tue, 20 Nov 2012 15:22:51 -0500
parents 6f6f965c5e2d
children
line wrap: on
line source


#include "Python.h"

#ifndef PLATFORM
#define PLATFORM "unknown"
#endif

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