diff options
author | Christian Hergert <chergert@redhat.com> | 2023-03-20 15:38:20 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2023-03-22 16:44:35 -0700 |
commit | 55e6f307b0df3f2205ea44ed27ddff5f92b0e770 (patch) | |
tree | 932089f77dde5a42cd00ce03cff3025447952dbc | |
parent | d70123b4755c985ed592a00e72b1d65f3de63fd5 (diff) | |
download | libpeas-55e6f307b0df3f2205ea44ed27ddff5f92b0e770.tar.gz |
loaders/python: remove python2 vs python3-isms
-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); |