contrib/fuzz/pyutil.h
author Martin von Zweigbergk <martinvonz@google.com>
Mon, 19 Apr 2021 16:53:45 -0700
changeset 46978 dc8976cc3a6e
parent 43870 8766728dbce6
permissions -rw-r--r--
tests: make test-archive.t pass on py3.9 (issue6504) Something got stricter at parsing URL query parameters and now the parameters need to be separated by "&"; ";" is no longer allowed. See issue6504 for details. Differential Revision: https://phab.mercurial-scm.org/D10472

#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 */