[PATCH 5 of 9 3.26] [ext/rest] Drop "handle_io_errors" argument to docutils' FileInput

Denis Laxalde denis.laxalde at logilab.fr
Thu Jun 28 12:28:32 CEST 2018


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1530177070 -7200
#      Thu Jun 28 11:11:10 2018 +0200
# Branch 3.26
# Node ID 1693730548ef0416fdef666abbf6c5348ade089f
# Parent  45f9d93bba712769e98d22e2192603be159e9b4a
# Available At https://hg.logilab.org/review/cubicweb
#              hg pull https://hg.logilab.org/review/cubicweb -r 1693730548ef
# EXP-Topic py3
[ext/rest] Drop "handle_io_errors" argument to docutils' FileInput

This argument is deprecated and ignore in docutils since version 0.10.
Besides, its default value is None which is the same as we passed.

diff --git a/cubicweb/ext/rest.py b/cubicweb/ext/rest.py
--- a/cubicweb/ext/rest.py
+++ b/cubicweb/ext/rest.py
@@ -229,7 +229,7 @@ def winclude_directive(name, arguments, 
         include_file = io.FileInput(
             source_path=path, encoding=encoding,
             error_handler=state.document.settings.input_encoding_error_handler,
-            handle_io_errors=None)
+        )
     except IOError as error:
         severe = state_machine.reporter.severe(
               'Problems with "%s" directive path:\n%s: %s.'


More information about the cubicweb-devel mailing list