Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision cf9a63c6c7e19f3d27cf3b5731d02cc216ef3dd1 authored by Miss Islington (bot) on 14 July 2019, 23:49:52 UTC, committed by GitHub on 14 July 2019, 23:49:52 UTC
https://bugs.python.org/issue37593 (cherry picked from commit cd6e83b4810549c308ab2d7315dbab526e35ccf6) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
1 parent 3958b7a
Tip revision: cf9a63c6c7e19f3d27cf3b5731d02cc216ef3dd1 authored by Miss Islington (bot) on 14 July 2019, 23:49:52 UTC
bpo-37593: Swap the positions of posonlyargs and args in the constructor of ast.parameters nodes (GH-14778)
bpo-37593: Swap the positions of posonlyargs and args in the constructor of ast.parameters nodes (GH-14778)
Tip revision: cf9a63c
getbuildinfo.c
#include "Python.h"
#ifndef DONT_HAVE_STDIO_H
#include <stdio.h>
#endif
#ifndef DATE
#ifdef __DATE__
#define DATE __DATE__
#else
#define DATE "xx/xx/xx"
#endif
#endif
#ifndef TIME
#ifdef __TIME__
#define TIME __TIME__
#else
#define TIME "xx:xx:xx"
#endif
#endif
/* XXX Only unix build process has been tested */
#ifndef GITVERSION
#define GITVERSION ""
#endif
#ifndef GITTAG
#define GITTAG ""
#endif
#ifndef GITBRANCH
#define GITBRANCH ""
#endif
const char *
Py_GetBuildInfo(void)
{
static char buildinfo[50 + sizeof(GITVERSION) +
((sizeof(GITTAG) > sizeof(GITBRANCH)) ?
sizeof(GITTAG) : sizeof(GITBRANCH))];
const char *revision = _Py_gitversion();
const char *sep = *revision ? ":" : "";
const char *gitid = _Py_gitidentifier();
if (!(*gitid))
gitid = "default";
PyOS_snprintf(buildinfo, sizeof(buildinfo),
"%s%s%s, %.20s, %.9s", gitid, sep, revision,
DATE, TIME);
return buildinfo;
}
const char *
_Py_gitversion(void)
{
return GITVERSION;
}
const char *
_Py_gitidentifier(void)
{
const char *gittag, *gitid;
gittag = GITTAG;
if ((*gittag) && strcmp(gittag, "undefined") != 0)
gitid = gittag;
else
gitid = GITBRANCH;
return gitid;
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...