summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2017-02-19 11:40:55 (GMT)
committerGitHub <noreply@github.com>2017-02-19 11:40:55 (GMT)
commitb121d737fe60e56dac5a44535e02089c6c02613d (patch)
treeb99531d37e766948b83e0a5b3650c402543fdc2c /Doc
parent3337d33a4518f7ab8a7ab6c9a75b8b92ba348b27 (diff)
downloadcpython-b121d737fe60e56dac5a44535e02089c6c02613d.zip
cpython-b121d737fe60e56dac5a44535e02089c6c02613d.tar.gz
cpython-b121d737fe60e56dac5a44535e02089c6c02613d.tar.bz2
Tweak PEP 519 documentation in stdlib (#164)
* Drop duplicate word 'object' in lzma docs * Fix typo in os docs: fpr -> for (cherry picked from commit d4d48743ac20854de104e08dd66972471684f676)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/lzma.rst4
-rw-r--r--Doc/library/os.rst2
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/lzma.rst b/Doc/library/lzma.rst
index 5edb23d..cce6c23 100644
--- a/Doc/library/lzma.rst
+++ b/Doc/library/lzma.rst
@@ -39,7 +39,7 @@ Reading and writing compressed files
object`.
The *filename* argument can be either an actual file name (given as a
- :class:`str`, :class:`bytes` or :term:`path-like object` object), in
+ :class:`str`, :class:`bytes` or :term:`path-like <path-like object>` object), in
which case the named file is opened, or it can be an existing file object
to read from or write to.
@@ -76,7 +76,7 @@ Reading and writing compressed files
An :class:`LZMAFile` can wrap an already-open :term:`file object`, or operate
directly on a named file. The *filename* argument specifies either the file
object to wrap, or the name of the file to open (as a :class:`str`,
- :class:`bytes` or :term:`path-like object` object). When wrapping an
+ :class:`bytes` or :term:`path-like <path-like object>` object). When wrapping an
existing file object, the wrapped file will not be closed when the
:class:`LZMAFile` is closed.
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 37fa2a2..974ab2d 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -2859,7 +2859,7 @@ These functions are all available on Linux only.
:ref:`not following symlinks <follow_symlinks>`.
.. versionchanged:: 3.6
- Accepts a :term:`path-like object` fpr *path* and *attribute*.
+ Accepts a :term:`path-like object` for *path* and *attribute*.
.. function:: listxattr(path=None, *, follow_symlinks=True)