diff options
Diffstat (limited to 'loaders/python/peas-python-internal.c')
-rw-r--r-- | loaders/python/peas-python-internal.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/loaders/python/peas-python-internal.c b/loaders/python/peas-python-internal.c index b1b4c27..9ab55d7 100644 --- a/loaders/python/peas-python-internal.c +++ b/loaders/python/peas-python-internal.c @@ -68,7 +68,6 @@ peas_python_internal_setup (gboolean already_initialized) PyObject *builtins_module, *globals, *result; PyObject *code = NULL, *failed_method = NULL; gboolean success = FALSE; - char *localedir = NULL; #define goto_error_if_failed(cond) \ G_STMT_START { \ @@ -82,11 +81,7 @@ peas_python_internal_setup (gboolean already_initialized) prgname = g_get_prgname (); prgname = prgname == NULL ? "" : prgname; -#if PY_MAJOR_VERSION < 3 - builtins_module = PyImport_ImportModule ("__builtin__"); -#else builtins_module = PyImport_ImportModule ("builtins"); -#endif goto_error_if_failed (builtins_module != NULL); @@ -97,11 +92,7 @@ peas_python_internal_setup (gboolean already_initialized) * https://bugzilla.gnome.org/show_bug.cgi?id=673101 */ internal_python = g_resources_lookup_data ("/org/gnome/libpeas/loaders/" -#if PY_MAJOR_VERSION < 3 "python/" -#else - "python3/" -#endif "internal.py", G_RESOURCE_LOOKUP_FLAGS_NONE, NULL); |