diff options
author | Guido van Rossum <guido@python.org> | 2000-10-02 15:53:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-10-02 15:53:08 (GMT) |
commit | 1ea64ea3abf78a65f8145ab2613be7dfd178f4ce (patch) | |
tree | 3ddff45d5e82c036d14872b06b51da47d1057121 | |
parent | 3105f920bf9ee17beaeca1e9cbbd0b5b77a67f13 (diff) | |
download | cpython-1ea64ea3abf78a65f8145ab2613be7dfd178f4ce.zip cpython-1ea64ea3abf78a65f8145ab2613be7dfd178f4ce.tar.gz cpython-1ea64ea3abf78a65f8145ab2613be7dfd178f4ce.tar.bz2 |
Supporting rl_library_version is more trouble than it's worth --
readline doesn't have it before readline 2.2 and there's no
compile-time way to find out which readline version is in use.
Sigh. GNU readline sucks.
-rw-r--r-- | Modules/readline.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Modules/readline.c b/Modules/readline.c index 4105ddb..cf0b064 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -38,7 +38,6 @@ extern int read_history(char *); extern int write_history(char *); extern int history_truncate_file(char *, int); extern Function *rl_event_hook; -extern char *rl_library_version; #endif /* Pointers needed from outside (but not declared in a header file). */ @@ -495,16 +494,10 @@ static char doc_module[] = DL_EXPORT(void) initreadline(void) { - PyObject *m, *d, *v; + PyObject *m; m = Py_InitModule4("readline", readline_methods, doc_module, (PyObject *)NULL, PYTHON_API_VERSION); - - d = PyModule_GetDict(m); - v = PyString_FromString(rl_library_version); - PyDict_SetItemString(d, "library_version", v); - Py_XDECREF(v); - if (isatty(fileno(stdin))) { PyOS_ReadlineFunctionPointer = call_readline; setup_readline(); |