[pygobject] Drop compat code for old python version



commit 4f25fa43e1e5c0f3cd22bcdadadb1d731f01fe34
Author: Jose Rostagno <joserostagno vijona com ar>
Date:   Sat Mar 30 20:50:35 2013 -0300

    Drop compat code for old python version
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698763

 gi/_glib/pyglib-python-compat.h |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/gi/_glib/pyglib-python-compat.h b/gi/_glib/pyglib-python-compat.h
index 0153296..96c27ca 100644
--- a/gi/_glib/pyglib-python-compat.h
+++ b/gi/_glib/pyglib-python-compat.h
@@ -21,18 +21,6 @@
 #ifndef __PYGLIB_PYTHON_COMPAT_H__
 #define __PYGLIB_PYTHON_COMPAT_H__
 
-/* Python 2.3 does not define Py_CLEAR */
-#ifndef Py_CLEAR
-#define Py_CLEAR(op)                \
-        do {                                \
-                if (op) {           \
-                        PyObject *tmp = (PyObject *)(op);   \
-                        (op) = NULL;        \
-                        Py_DECREF(tmp);     \
-                }               \
-        } while (0)
-#endif
-
 # define PYGLIB_CPointer_Check PyCapsule_CheckExact
 # define PYGLIB_CPointer_WrapPointer(ptr, typename) \
     PyCapsule_New(ptr, typename, NULL)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]