view Python/getplatform.c @ 37473:20ffc2ca03e0 legacy-trunk

Fix __import__("") to raise ValueError rather than return None.
author Thomas Wouters <thomas@python.org>
date Tue, 04 Apr 2006 16:17:02 +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;
}