# HG changeset patch # User RĂ©mi Cardona # Date 1408560377 -7200 # Node ID dccce2be3101e640184c0b679ac3a28397f910d8 # Parent 59a77e8847bce687f32c7fe4ed3c89be9d03ed70 [ext] Remove use of cStringIO We create a StringIO never to read anything from it. Docutils seems to support setting the 'warning_stream' to False to ignore warnings. So let's just do that. diff -r 59a77e8847bc -r dccce2be3101 ext/rest.py --- 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