Fixes #1834: compatibility for docutils-0.13: handle_io_errors keyword argument for docutils.io.FileInput cause TypeError.

The argument is already deprecated and no effects from docutils-0.10.
This commit is contained in:
shimizukawa
2015-04-05 18:22:15 +09:00
parent ccd7e73c19
commit 6c1ba34614
2 changed files with 2 additions and 2 deletions

View File

@@ -11,6 +11,8 @@ Bugs fixed
* #1802: load plugin themes automatically when theme.conf use it as 'inherit'. Thanks to
Takayuki Hirai.
* #1794: custom theme extended from alabaster or sphinx_rtd_theme can't find base theme.
* #1834: compatibility for docutils-0.13: handle_io_errors keyword argument for
docutils.io.FileInput cause TypeError.
Release 1.3.1 (released Mar 17, 2015)

View File

@@ -141,8 +141,6 @@ class SphinxFileInput(FileInput):
def __init__(self, app, env, *args, **kwds):
self.app = app
self.env = env
# don't call sys.exit() on IOErrors
kwds['handle_io_errors'] = False
kwds['error_handler'] = 'sphinx' # py3: handle error on open.
FileInput.__init__(self, *args, **kwds)