diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2020-04-15 20:15:10 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2020-04-16 18:54:18 +0200 |
commit | f3cb961528e9e913811ed425bd096fd133880683 (patch) | |
tree | 5e81a8c02547f46bef080d66e103825311b116f0 /gi/pygi-struct.c | |
parent | a6799b242c0abd6a9dfbf1e98742b2b922205ebf (diff) | |
download | pygobject-f3cb961528e9e913811ed425bd096fd133880683.tar.gz |
Remove all Python 2 C code
Diffstat (limited to 'gi/pygi-struct.c')
-rw-r--r-- | gi/pygi-struct.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gi/pygi-struct.c b/gi/pygi-struct.c index 4c05b7c4..fe41f255 100644 --- a/gi/pygi-struct.c +++ b/gi/pygi-struct.c @@ -25,7 +25,7 @@ #include "pygi-type.h" #include "pygi-type.h" #include "pygpointer.h" -#include "pygi-python-compat.h" +#include "pygi-util.h" #include <girepository.h> @@ -216,11 +216,11 @@ struct_repr(PyGIStruct *self) if (info == NULL) return NULL; - repr = PYGLIB_PyUnicode_FromFormat ("<%s.%s object at %p (%s at %p)>", - g_base_info_get_namespace (info), - g_base_info_get_name (info), - self, g_type_name (pointer->gtype), - pointer->pointer); + repr = PyUnicode_FromFormat ("<%s.%s object at %p (%s at %p)>", + g_base_info_get_namespace (info), + g_base_info_get_name (info), + self, g_type_name (pointer->gtype), + pointer->pointer); g_base_info_unref (info); |