view Python/getplatform.c @ 36702:35dbbc1ab448 legacy-trunk

Check the return code for PyErr_Warn() when warning about raising string exceptions. This was triggered when 'warnings' had a filter set to "error" that caught the string exception deprecation warning.
author Brett Cannon <bcannon@gmail.com>
date Mon, 27 Feb 2006 23:39:10 +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;
}