diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-07-07 14:06:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-07 14:06:58 (GMT) |
commit | 1881befb905553618f1e7ad2cef8f6ff07e1b8ef (patch) | |
tree | ba85da0904634fb569d5dd5217d53dbbb56807e6 /Modules | |
parent | fae8f4a9cb88a68eb14750cbb8ddf8740fd67b8b (diff) | |
download | cpython-1881befb905553618f1e7ad2cef8f6ff07e1b8ef.zip cpython-1881befb905553618f1e7ad2cef8f6ff07e1b8ef.tar.gz cpython-1881befb905553618f1e7ad2cef8f6ff07e1b8ef.tar.bz2 |
bpo-29854: test_readline logs versions (#2619)
* test_readline logs the versions of libreadline when run in verbose
mode
* Add also readline._READLINE_LIBRARY_VERSION
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/readline.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/readline.c b/Modules/readline.c index 6ba1247..7d32c21 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -1427,6 +1427,7 @@ PyInit_readline(void) PyModule_AddIntConstant(m, "_READLINE_VERSION", RL_READLINE_VERSION); PyModule_AddIntConstant(m, "_READLINE_RUNTIME_VERSION", rl_readline_version); + PyModule_AddStringConstant(m, "_READLINE_LIBRARY_VERSION", rl_library_version); return m; } |