view Python/getplatform.c @ 78236:e683084c8bb9

Consistently raise a TypeError when a non str is passed to hashlib.new regardless of which of the two implementations of new is used.
author Gregory P. Smith <greg@krypto.org>
date Sat, 21 Jul 2012 21:20:44 -0700
parents 6f6f965c5e2d
children
line wrap: on
line source


#include "Python.h"

#ifndef PLATFORM
#define PLATFORM "unknown"
#endif

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