Staging
v0.5.1
https://github.com/python/cpython
Revision 66e5742becce38e69a8f09e5f7051445fc57e92e authored by Christian Heimes on 29 January 2018, 13:25:13 UTC, committed by GitHub on 29 January 2018, 13:25:13 UTC
Add test cases for IDNA 2003 and 2008 host names. IDNA 2003
internationalized host names are working since bpo-31399 has landed. IDNA
2008 deviations are still broken and will be fixed in another patch.

Signed-off-by: Christian Heimes <christian@python.org>
1 parent 892d66e
Raw File
Tip revision: 66e5742becce38e69a8f09e5f7051445fc57e92e authored by Christian Heimes on 29 January 2018, 13:25:13 UTC
bpo-28414: ssl module idna test (#5395)
Tip revision: 66e5742
getcompiler.c

/* Return the compiler identification, if possible. */

#include "Python.h"

#ifndef COMPILER

// Note the __clang__ conditional has to come before the __GNUC__ one because
// clang pretends to be GCC.
#if defined(__clang__)
#define COMPILER "\n[Clang " __clang_version__ "]"
#elif defined(__GNUC__)
#define COMPILER "\n[GCC " __VERSION__ "]"
// Generic fallbacks.
#elif defined(__cplusplus)
#define COMPILER "[C++]"
#else
#define COMPILER "[C]"
#endif

#endif /* !COMPILER */

const char *
Py_GetCompiler(void)
{
    return COMPILER;
}
back to top