Skip to content

Commit 9ddf8b0

Browse files
committed
extension: Simplify the Compiler constructor
The DeviceManager is no longer needed.
1 parent 1c41875 commit 9ddf8b0

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

frida/_frida/extension.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4858,15 +4858,10 @@ frida_python_authentication_service_do_authenticate (GTask * task, FridaPythonAu
48584858
static int
48594859
PyCompiler_init (PyCompiler * self, PyObject * args, PyObject * kw)
48604860
{
4861-
PyDeviceManager * manager;
4862-
48634861
if (PyGObject_tp_init ((PyObject *) self, args, kw) < 0)
48644862
return -1;
48654863

4866-
if (!PyArg_ParseTuple (args, "O!", PYFRIDA_TYPE_OBJECT (DeviceManager), &manager))
4867-
return -1;
4868-
4869-
PyGObject_take_handle (&self->parent, frida_compiler_new (PY_GOBJECT_HANDLE (manager)), PYFRIDA_TYPE (Compiler));
4864+
PyGObject_take_handle (&self->parent, frida_compiler_new (NULL), PYFRIDA_TYPE (Compiler));
48704865

48714866
return 0;
48724867
}

frida/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,7 @@ class CompilerDiagnostic(TypedDict):
15571557

15581558
class Compiler:
15591559
def __init__(self) -> None:
1560-
self._impl = _frida.Compiler(get_device_manager()._impl)
1560+
self._impl = _frida.Compiler()
15611561

15621562
def __repr__(self) -> str:
15631563
return repr(self._impl)

0 commit comments

Comments
 (0)