ext/rest.py
changeset 10212 dccce2be3101
parent 10023 c3ab46842b2d
child 10588 fdaa0e4b7eaf
child 10957 2fdf67ef3341
--- a/ext/rest.py	Wed Jul 30 22:34:55 2014 +0200
+++ b/ext/rest.py	Wed Aug 20 20:46:17 2014 +0200
@@ -34,7 +34,6 @@
 """
 __docformat__ = "restructuredtext en"
 
-from cStringIO import StringIO
 from itertools import chain
 from logging import getLogger
 from os.path import join
@@ -405,7 +404,7 @@
         # remove unprintable characters unauthorized in xml
         data = data.translate(ESC_CAR_TABLE)
     settings = {'input_encoding': encoding, 'output_encoding': 'unicode',
-                'warning_stream': StringIO(),
+                'warning_stream': False,
                 'traceback': True, # don't sys.exit
                 'stylesheet': None, # don't try to embed stylesheet (may cause
                                     # obscure bug due to docutils computing