view Python/getplatform.c @ 83549:08ce30768003 3.3

raise an ImportError (rather than fatal) when __import__ is not found in __builtins__ (closes #17867)
author Benjamin Peterson <benjamin@python.org>
date Mon, 29 Apr 2013 09:08:14 -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;
}