|
From: <mi...@us...> - 2019-09-18 10:13:19
|
Revision: 8394
http://sourceforge.net/p/docutils/code/8394
Author: milde
Date: 2019-09-18 10:13:17 +0000 (Wed, 18 Sep 2019)
Log Message:
-----------
Remove the `handle_io_errors` option from io.FileInput/Output.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/RELEASE-NOTES.txt
trunk/docutils/docutils/io.py
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2019-09-18 10:13:00 UTC (rev 8393)
+++ trunk/docutils/HISTORY.txt 2019-09-18 10:13:17 UTC (rev 8394)
@@ -30,6 +30,10 @@
__ http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#escaping-mechanism
+* docutils/io.py
+
+ - Remove the `handle_io_errors` option from io.FileInput/Output.
+
* docutils/nodes.py
- Speed up Node.next_node().
Modified: trunk/docutils/RELEASE-NOTES.txt
===================================================================
--- trunk/docutils/RELEASE-NOTES.txt 2019-09-18 10:13:00 UTC (rev 8393)
+++ trunk/docutils/RELEASE-NOTES.txt 2019-09-18 10:13:17 UTC (rev 8394)
@@ -30,9 +30,6 @@
__ docs/user/latex.html#classes
-* Remove the `handle_io_errors` option from io.FileInput/Output.
- Used by Sphinx up to version 1.3.1, fixed in 1.3.2 (Nov 29, 2015).
-
* Node.traverse() will return an iterator instead of a list.
* Remove `utils.unique_combinations` (obsoleted by `itertools.combinations`).
@@ -49,11 +46,7 @@
.. _rst2html.py: docs/user/tools.html#rst2html-py
-* Allow escaping of author-separators in `bibliographic fields`__.
- __ docs/ref/rst/restructuredtext.html#bibliographic-fields
-
-
Release 0.16
============
@@ -71,10 +64,13 @@
* reStructuredText:
- - Keep `backslash escapes`__ in the document tree.
+ - Keep `backslash escapes`__ in the document tree. This allows, e.g.,
+ escaping of author-separators in `bibliographic fields`__.
__ http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#escaping-mechanism
+ __ docs/ref/rst/restructuredtext.html#bibliographic-fields
+
* LaTeX writer:
- Informal titles of type "rubric" default to bold-italic and left aligned.
@@ -81,7 +77,11 @@
- Deprecate ``\docutilsrole`` prefix for styling commands:
use ``\DUrole`` instead.
+* docutils/io.py
+ - Remove the `handle_io_errors` option from io.FileInput/Output.
+
+
Release 0.15
============
Modified: trunk/docutils/docutils/io.py
===================================================================
--- trunk/docutils/docutils/io.py 2019-09-18 10:13:00 UTC (rev 8393)
+++ trunk/docutils/docutils/io.py 2019-09-18 10:13:17 UTC (rev 8394)
@@ -208,7 +208,7 @@
def __init__(self, source=None, source_path=None,
encoding=None, error_handler='strict',
autoclose=True,
- mode='r' if sys.version_info >= (3, 0) else 'rU', **kwargs):
+ mode='r' if sys.version_info >= (3, 0) else 'rU'):
"""
:Parameters:
- `source`: either a file-like object (which is read directly), or
@@ -220,21 +220,11 @@
`sys.stdin` is the source).
- `mode`: how the file is to be opened (see standard function
`open`). The default 'rU' provides universal newline support
- for text files on Python < 3.4.
+ for text files with Python 2.x.
"""
Input.__init__(self, source, source_path, encoding, error_handler)
self.autoclose = autoclose
self._stderr = ErrorOutput()
- # deprecation warning
- for key in kwargs:
- if key == 'handle_io_errors':
- sys.stderr.write('deprecation warning: '
- 'io.FileInput() argument `handle_io_errors` '
- 'is ignored since Docutils 0.10 (2012-12-16) '
- 'and will soon be removed.')
- else:
- raise TypeError('__init__() got an unexpected keyword '
- "argument '%s'" % key)
if source is None:
if source_path:
@@ -244,7 +234,6 @@
'errors': self.error_handler}
else:
kwargs = {}
-
try:
self.source = open(source_path, mode, **kwargs)
except IOError as error:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|