view Python/getplatform.c @ 84467:b8028f74bac4 3.3

Issue #18351: Fix various issues with importlib._bootstrap._get_sourcefile(). Thanks to its only use by the C API, it was never properly tested until now. Thanks to Neal Norwitz for discovering the bug and Madison May for the patch.
author Brett Cannon <brett@python.org>
date Sat, 06 Jul 2013 17:56:43 -0400
parents 6f6f965c5e2d
children
line wrap: on
line source


#include "Python.h"

#ifndef PLATFORM
#define PLATFORM "unknown"
#endif

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