diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-07 01:10:53 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-07 23:24:39 +0900 |
commit | ac5cbfc61861eec857900f752e2fd01b951d0a11 (patch) | |
tree | ab239a61b02dde563170485344f714c4500238dc /sphinx/io.py | |
parent | 534583cfa65c00143fa221533c29b2e0b2f54e05 (diff) | |
download | sphinx-git-ac5cbfc61861eec857900f752e2fd01b951d0a11.tar.gz |
Remove SphinxBaseFileInput.decode() because it is not used in py3
Diffstat (limited to 'sphinx/io.py')
-rw-r--r-- | sphinx/io.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sphinx/io.py b/sphinx/io.py index 6e0abfabe..6609d0e72 100644 --- a/sphinx/io.py +++ b/sphinx/io.py @@ -17,7 +17,6 @@ from docutils.parsers.rst import Parser as RSTParser from docutils.readers import standalone from docutils.statemachine import StringList, string2lines from docutils.writers import UnfilteredWriter -from six import text_type from typing import Any, Union # NOQA from sphinx.deprecation import RemovedInSphinx30Warning @@ -170,12 +169,6 @@ class SphinxBaseFileInput(FileInput): kwds['error_handler'] = 'sphinx' # py3: handle error on open. super(SphinxBaseFileInput, self).__init__(*args, **kwds) - def decode(self, data): - # type: (Union[unicode, bytes]) -> unicode - if isinstance(data, text_type): # py3: `data` already decoded. - return data - return data.decode(self.encoding, 'sphinx') # py2: decoding - def read(self): # type: () -> unicode """Reads the contents from file. |