diff options
author | Guido van Rossum <guido@python.org> | 2003-01-07 20:04:12 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-01-07 20:04:12 (GMT) |
commit | 05ac449d2970aba1922380796633084175e30424 (patch) | |
tree | 4e154fd9f83fa48bd2abc1f8c562862297ecc8e8 | |
parent | 74f3143d18e5a64ab11fc674260763eb73f4a1ae (diff) | |
download | cpython-05ac449d2970aba1922380796633084175e30424.zip cpython-05ac449d2970aba1922380796633084175e30424.tar.gz cpython-05ac449d2970aba1922380796633084175e30424.tar.bz2 |
A few more whitespace normalizations.
-rw-r--r-- | Modules/readline.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/readline.c b/Modules/readline.c index 34919d7..972b5b2 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -361,7 +361,7 @@ get_history_item(PyObject *self, PyObject *args) if (!PyArg_ParseTuple(args, "i:index", &idx)) return NULL; if ((hist_ent = history_get(idx))) - return PyString_FromString(hist_ent->line); + return PyString_FromString(hist_ent->line); else { Py_INCREF(Py_None); return Py_None; @@ -477,6 +477,7 @@ static struct PyMethodDef readline_methods[] = {0, 0} }; + /* C function to call the Python hooks. */ static int @@ -523,6 +524,7 @@ on_pre_input_hook(void) } #endif + /* C function to call the Python completer. */ static char * @@ -577,6 +579,7 @@ flex_complete(char *text, int start, int end) return completion_matches(text, *on_completion); } + /* Helper to initialize GNU readline properly. */ static void |