Staging
v0.5.1
https://github.com/python/cpython
Revision f1e8be70a635995e67230b7eb73b08c442d886f8 authored by Miss Islington (bot) on 03 October 2018, 04:44:18 UTC, committed by GitHub on 03 October 2018, 04:44:18 UTC

A follow up to be4e5b89204283a62e369439025f00362d0424f6.
(cherry picked from commit e006b39a40e0cd6a90c68f1107853ea2ed0ed54d)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
1 parent 07b96a9
Raw File
Tip revision: f1e8be70a635995e67230b7eb73b08c442d886f8 authored by Miss Islington (bot) on 03 October 2018, 04:44:18 UTC
Make it clear that the msg argument to assertWarns/assertWarnsRegex/assertRaisesRegex is keyword-only. (GH-9680)
Tip revision: f1e8be7
strdup.c
/* strdup() replacement (from stdwin, if you must know) */

#include "pgenheaders.h"

char *
strdup(const char *str)
{
	if (str != NULL) {
		char *copy = malloc(strlen(str) + 1);
		if (copy != NULL)
			return strcpy(copy, str);
	}
	return NULL;
}
back to top