[ext/rest] Drop "handle_io_errors" argument to docutils' FileInput 3.26
authorDenis Laxalde <denis.laxalde@logilab.fr>
Thu, 28 Jun 2018 11:11:10 +0200
branch3.26
changeset 12333 1693730548ef
parent 12332 45f9d93bba71
child 12334 4c0f7ef3145c
[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.
cubicweb/ext/rest.py
--- a/cubicweb/ext/rest.py	Thu Jun 28 10:38:04 2018 +0200
+++ b/cubicweb/ext/rest.py	Thu Jun 28 11:11:10 2018 +0200
@@ -229,7 +229,7 @@
         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.'