From: Carlos Pita <[email-masked]>
Date: Wed, 22 Oct 2014 11:41:15 -0300

You can just add

(replace-regexp-in-string "\n$" ""   ......)

around

(python-shell-send-string-no-output ....)

in

python-eldoc--get-doc-at-point

Cheers
--
Carlos