mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
extension: Drop PyFrida_is_string()
Now that it does nothing special as we no longer support Python 2. Co-authored-by: Håvard Sørbø <havard@hsorbo.no>
This commit is contained in:
@@ -546,7 +546,6 @@ static void PyCancellable_destroy_callback (PyObject * callback);
|
||||
static PyObject * PyCancellable_cancel (PyCancellable * self);
|
||||
|
||||
static PyObject * PyFrida_raise (GError * error);
|
||||
static gboolean PyFrida_is_string (PyObject * obj);
|
||||
static gchar * PyFrida_repr (PyObject * obj);
|
||||
static guint PyFrida_get_max_argument_count (PyObject * callable);
|
||||
|
||||
@@ -1722,7 +1721,7 @@ PyGObject_marshal_variant_array (GVariant * variant)
|
||||
static gboolean
|
||||
PyGObject_unmarshal_variant (PyObject * value, GVariant ** variant)
|
||||
{
|
||||
if (PyFrida_is_string (value))
|
||||
if (PyUnicode_Check (value))
|
||||
{
|
||||
gchar * str;
|
||||
|
||||
@@ -5351,12 +5350,6 @@ PyFrida_raise (GError * error)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
PyFrida_is_string (PyObject * obj)
|
||||
{
|
||||
return PyUnicode_Check (obj);
|
||||
}
|
||||
|
||||
static gchar *
|
||||
PyFrida_repr (PyObject * obj)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user