summaryrefslogtreecommitdiff
path: root/plugins/dex
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dex')
-rw-r--r--plugins/dex/python/format.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/dex/python/format.c b/plugins/dex/python/format.c
index 74f6eae..906b09a 100644
--- a/plugins/dex/python/format.c
+++ b/plugins/dex/python/format.c
@@ -77,7 +77,10 @@ static PyObject *py_dex_format_new(PyTypeObject *type, PyObject *args, PyObject
GtkStatusStack *status; /* Instance GTK de suivi */
GBinFormat *format; /* Création GLib à transmettre */
- ret = PyArg_ParseTuple(args, "OOO", &content_obj, &parent_obj, &status_obj);
+ parent_obj = Py_None;
+ status_obj = Py_None;
+
+ ret = PyArg_ParseTuple(args, "O|OO", &content_obj, &parent_obj, &status_obj);
if (!ret) return NULL;
ret = PyObject_IsInstance(content_obj, (PyObject *)get_python_binary_content_type());