Subject: 24.5; python.el: python-shell-buffer-substring fails under certain circumstances

From: [email-masked] (Fabián Ezequiel Gallina)
Date: Sun, 23 Aug 2015 20:01:15 -0300

Fixed in master at af013e0.

I installed a different patch that seems to be more robust on various
conditions (see tests).

Thanks for such detailed report,
Fabián.