view contrib/fuzz/pyutil.h @ 48943:70df51a2c2ce

tests: remove Python < 3 check We require Python 3 now. Differential Revision: https://phab.mercurial-scm.org/D12349
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 21 Feb 2022 12:44:41 -0700
parents 8766728dbce6
children
line wrap: on
line source

#include <Python.h>

#if PY_MAJOR_VERSION >= 3
#define PYCODETYPE PyObject
#else
#define PYCODETYPE PyCodeObject
#endif

namespace contrib
{

void initpy(const char *cselfpath);
PyObject *pyglobals();

} /* namespace contrib */