]> granicus.if.org Git - python/commit
[Bug #1552726] Avoid repeatedly polling in interactive mode -- only put a timeout...
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 7 Sep 2006 13:59:38 +0000 (13:59 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 7 Sep 2006 13:59:38 +0000 (13:59 +0000)
commit62e475b84f0cf3343fbd15810678b3c6f728aa9f
tree6d2303740dcc5d00f08301d9b180a6033f3a0fa9
parent95b0478c0750d71d4b709c6e5f0955d214d2bf85
[Bug #1552726] Avoid repeatedly polling in interactive mode -- only put a timeout on the select()
if an input hook has been defined.  Patch by Richard Boulton.

This select() code is only executed with readline 2.1, or if
READLINE_CALLBACKS is defined.

Backport candidate for 2.5, 2.4, probably earlier versions too.
Modules/readline.c