view Python/getplatform.c @ 78185:54524897fafc

Issue #15365: Make traceback reporting ignore any errors when printing out the source line. Such errors can't be reported anyway. This makes error reporting work, even if the "io" module can't be loaded.
author Kristján Valur Jónsson <kristjan@ccpgames.com>
date Thu, 19 Jul 2012 21:02: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;
}