pyreadline: Fix crash when readline called from doctest. stdout was replaced by dummy object, we now assume encoding=="ascii" if stdout.encdoding is missing.

This commit is contained in:
jstenar
2007-04-16 17:56:36 +00:00
parent e25ea17ddb
commit d4f2cbeab8
2 changed files with 13 additions and 1 deletions
+6
View File
@@ -1,3 +1,9 @@
2007-04-16 Jörgen Stenarson <jorgen.stenarson -at- bostream.nu>
* doctest imports pdb which imports readline, this means readline
can be imported when a dummy object has replaced stdout. The dummy
might miss the encoding property. We now assume stdout.encoding=="ascii"
in this case.
2007-04-14 Jörgen Stenarson <jorgen.stenarson -at- bostream.nu>
* Changing binding for control-delete to forward_delete_word, adding tests to verify binding