summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-01-16 04:32:52 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-01-16 04:32:52 (GMT)
commit264dcb729082579611de27680df701e763895298 (patch)
tree5b6753b515140414a231dd7596cb25018a82e8f5 /Doc/library
parentc39162de4a64a9f8c03a474e97a9f2a21ceb9f54 (diff)
downloadcpython-264dcb729082579611de27680df701e763895298.zip
cpython-264dcb729082579611de27680df701e763895298.tar.gz
cpython-264dcb729082579611de27680df701e763895298.tar.bz2
Issue #26127: Fix links in tokenize documentation
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/tokenize.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/tokenize.rst b/Doc/library/tokenize.rst
index 3f25a2c..f4e4783 100644
--- a/Doc/library/tokenize.rst
+++ b/Doc/library/tokenize.rst
@@ -28,7 +28,7 @@ The primary entry point is a :term:`generator`:
The :func:`generate_tokens` generator requires one argument, *readline*,
which must be a callable object which provides the same interface as the
- :meth:`readline` method of built-in file objects (see section
+ :meth:`~file.readline` method of built-in file objects (see section
:ref:`bltin-file-objects`). Each call to the function should return one line
of input as a string. Alternately, *readline* may be a callable object that
signals completion by raising :exc:`StopIteration`.
@@ -47,11 +47,11 @@ An older entry point is retained for backward compatibility:
.. function:: tokenize(readline[, tokeneater])
- The :func:`tokenize` function accepts two parameters: one representing the input
- stream, and one providing an output mechanism for :func:`tokenize`.
+ The :func:`.tokenize` function accepts two parameters: one representing the input
+ stream, and one providing an output mechanism for :func:`.tokenize`.
The first parameter, *readline*, must be a callable object which provides the
- same interface as the :meth:`readline` method of built-in file objects (see
+ same interface as the :meth:`~file.readline` method of built-in file objects (see
section :ref:`bltin-file-objects`). Each call to the function should return one
line of input as a string. Alternately, *readline* may be a callable object that
signals completion by raising :exc:`StopIteration`.
@@ -65,7 +65,7 @@ An older entry point is retained for backward compatibility:
All constants from the :mod:`token` module are also exported from
:mod:`tokenize`, as are two additional token type values that might be passed to
-the *tokeneater* function by :func:`tokenize`:
+the *tokeneater* function by :func:`.tokenize`:
.. data:: COMMENT