mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
s4:Remove "Py_RETURN_NONE" compatibility code
This was needed only by Python 2.3 which we no longer support.
This commit is contained in:
@ -25,10 +25,6 @@
|
||||
#include "libcli/util/pyerrors.h"
|
||||
#include "param/pyparam.h"
|
||||
|
||||
#ifndef Py_RETURN_NONE
|
||||
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
|
||||
#endif
|
||||
|
||||
static PyObject *PyString_FromStringOrNULL(const char *str)
|
||||
{
|
||||
if (str == NULL)
|
||||
|
@ -25,10 +25,6 @@
|
||||
#include "pytalloc.h"
|
||||
#include <tevent.h>
|
||||
|
||||
#ifndef Py_RETURN_NONE
|
||||
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
|
||||
#endif
|
||||
|
||||
static PyObject *py_get_name_by_authtype(PyObject *self, PyObject *args)
|
||||
{
|
||||
int type;
|
||||
|
@ -23,10 +23,6 @@
|
||||
#include "librpc/ndr/libndr.h"
|
||||
#include "libcli/util/pyerrors.h"
|
||||
|
||||
#ifndef Py_RETURN_NONE
|
||||
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
|
||||
#endif
|
||||
|
||||
static struct com_context *py_com_ctx = NULL; /* FIXME: evil global */
|
||||
|
||||
static PyObject *py_get_class_object(PyObject *self, PyObject *args)
|
||||
|
@ -31,10 +31,6 @@
|
||||
#include "param/param.h"
|
||||
#include "param/pyparam.h"
|
||||
|
||||
#ifndef Py_RETURN_NONE
|
||||
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
|
||||
#endif
|
||||
|
||||
PyAPI_DATA(PyTypeObject) messaging_Type;
|
||||
PyAPI_DATA(PyTypeObject) irpc_ClientConnectionType;
|
||||
|
||||
|
@ -27,10 +27,6 @@
|
||||
#include "auth/credentials/pycredentials.h"
|
||||
#include "param/pyparam.h"
|
||||
|
||||
#ifndef Py_RETURN_NONE
|
||||
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
|
||||
#endif
|
||||
|
||||
PyAPI_DATA(PyTypeObject) PyRegistryKey;
|
||||
PyAPI_DATA(PyTypeObject) PyRegistry;
|
||||
PyAPI_DATA(PyTypeObject) PyHiveKey;
|
||||
|
@ -26,10 +26,6 @@
|
||||
#include "param/pyparam.h"
|
||||
#include "auth/credentials/pycredentials.h"
|
||||
|
||||
#ifndef Py_RETURN_NONE
|
||||
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
|
||||
#endif
|
||||
|
||||
static PyObject *py_dcerpc_run_function(dcerpc_InterfaceObject *iface,
|
||||
const struct PyNdrRpcMethodDef *md,
|
||||
PyObject *args, PyObject *kwargs)
|
||||
|
@ -23,10 +23,6 @@
|
||||
#include "librpc/ndr/libndr.h"
|
||||
#include "lib/util/wrap_xattr.h"
|
||||
|
||||
#ifndef Py_RETURN_NONE
|
||||
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
|
||||
#endif
|
||||
|
||||
static PyObject *py_is_xattr_supported(PyObject *self)
|
||||
{
|
||||
#if !defined(HAVE_XATTR_SUPPORT)
|
||||
|
@ -27,10 +27,6 @@
|
||||
#include "ntvfs/posix/vfs_posix.h"
|
||||
#include "libcli/util/pyerrors.h"
|
||||
|
||||
#ifndef Py_RETURN_NONE
|
||||
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
|
||||
#endif
|
||||
|
||||
static PyObject *py_is_xattr_supported(PyObject *self)
|
||||
{
|
||||
return Py_True;
|
||||
|
@ -29,10 +29,6 @@ typedef int Py_ssize_t;
|
||||
typedef inquiry lenfunc;
|
||||
#endif
|
||||
|
||||
#ifndef Py_RETURN_NONE
|
||||
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
|
||||
#endif
|
||||
|
||||
#define PyLoadparmContext_AsLoadparmContext(obj) py_talloc_get_type(obj, struct loadparm_context)
|
||||
|
||||
PyAPI_DATA(PyTypeObject) PyLoadparmContext;
|
||||
|
@ -35,10 +35,6 @@
|
||||
#include "param/pyparam.h"
|
||||
#include "auth/credentials/pycredentials.h"
|
||||
|
||||
#ifndef Py_RETURN_NONE
|
||||
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
|
||||
#endif
|
||||
|
||||
/* FIXME: These should be in a header file somewhere, once we finish moving
|
||||
* away from SWIG .. */
|
||||
#define PyErr_LDB_OR_RAISE(py_ldb, ldb) \
|
||||
|
@ -27,10 +27,6 @@
|
||||
#include "../lib/util/data_blob.h"
|
||||
#include "lib/tls/tls.h"
|
||||
|
||||
#ifndef Py_RETURN_NONE
|
||||
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
PyObject_HEAD
|
||||
struct websrv_context *web;
|
||||
|
Reference in New Issue
Block a user