fix and re-organize error printing to sys.stderr
commitd132a1fc2635a3cc35c7185791093ce3f9434fdd
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Tue, 10 May 2011 10:02:54 +0000 (10 10:02 +0000)
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Tue, 10 May 2011 10:02:54 +0000 (10 10:02 +0000)
tree8679f0bae10cb2699ed1317470ef60c51b80ee5b
parent60af8b70c3db988e7acff71b0ba0b533628a366b
fix and re-organize error printing to sys.stderr

New class docutils.io.ErrorOutput:

Wrapper class for file-like error streams with
failsave de- and encoding of `str`, `bytes`, `unicode` and
`Exception` instances.

git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7030 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
docutils/core.py
docutils/frontend.py
docutils/io.py
docutils/statemachine.py