summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@0d.be>2009-05-18 22:54:27 +0200
committerBehdad Esfahbod <behdad@behdad.org>2009-05-18 17:10:48 -0400
commit218c6e41627021a2964e606ef72165a16ed329bf (patch)
tree0d7a85c7a50f1a5634394650499101bcd7448d8a
parent56727a20b71cd5f960e468444ef544296ddc5edf (diff)
Bug 583129 – [python] allow passing None as command or directory option
-rw-r--r--python/vte.override4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vte.override b/python/vte.override
index 277bc3f..29c3316 100644
--- a/python/vte.override
+++ b/python/vte.override
@@ -169,7 +169,7 @@ _wrap_vte_terminal_fork_command(PyGObject * self, PyObject * args,
int i, n_args, n_envs;
pid_t pid;
- if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|sOOsOOO:fork_command",
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|zOOzOOO:fork_command",
kwlist, &command, &py_argv, &py_envv,
&directory,
&loglastlog, &logutmp, &logwtmp)) {
@@ -234,7 +234,7 @@ _wrap_vte_terminal_forkpty(PyGObject * self, PyObject * args, PyObject * kwargs)
int n_envs;
pid_t pid;
- if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|OsOOO:forkpty",
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|OzOOO:forkpty",
kwlist, &py_envv, &directory,
&loglastlog, &logutmp, &logwtmp)) {
return NULL;