testing: Add Path.read_text() and Path.read_bytes()

To migrate pathlib.Path in future, compatibile methods are needed
for our Path class.
This commit is contained in:
Takeshi KOMIYA
2020-02-01 10:58:28 +09:00
parent 41032572a5
commit 7d6374d983
3 changed files with 31 additions and 0 deletions

View File

@@ -31,6 +31,16 @@ The following is a list of deprecated interfaces.
- 5.0
- ``sphinx.domains.std.StandardDomain.note_object()``
* - ``sphinx.testing.path.Path.text()``
- 3.0
- 5.0
- ``sphinx.testing.path.Path.read_text()``
* - ``sphinx.testing.path.Path.bytes()``
- 3.0
- 5.0
- ``sphinx.testing.path.Path.read_bytes()``
* - ``decode`` argument of ``sphinx.pycode.ModuleAnalyzer()``
- 2.4
- 4.0