view Python/getplatform.c @ 82385:d98a82f4c9bd

Issue #17220: two fixes for changeset 2528e4aea338. First, because the mtime can exceed 4 bytes, make sure to mask it down to 4 bytes before getting its little-endian representation for writing out to a .pyc file. Two, cap an rsplit() call to 1 split, else can lead to too many values being returned for unpacking.
author Brett Cannon <brett@python.org>
date Mon, 25 Feb 2013 17:10:11 -0500
parents 6f6f965c5e2d
children
line wrap: on
line source


#include "Python.h"

#ifndef PLATFORM
#define PLATFORM "unknown"
#endif

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