mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
Fix a couple of grammatical errors reported by Detlef Lannert
<lannert@lannert.rz.uni-duesseldorf.de>.
This commit is contained in:
parent
4aa4f30759
commit
16214fb017
1 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ source code, implemented in Python. The scanner in this module
|
||||||
returns comments as tokens as well, making it useful for implementing
|
returns comments as tokens as well, making it useful for implementing
|
||||||
``pretty-printers,'' including colorizers for on-screen displays.
|
``pretty-printers,'' including colorizers for on-screen displays.
|
||||||
|
|
||||||
The scanner is exposed via single function:
|
The scanner is exposed by a single function:
|
||||||
|
|
||||||
|
|
||||||
\begin{funcdesc}{tokenize}{readline\optional{, tokeneater}}
|
\begin{funcdesc}{tokenize}{readline\optional{, tokeneater}}
|
||||||
|
|
@ -21,7 +21,7 @@ The scanner is exposed via single function:
|
||||||
for \function{tokenize()}.
|
for \function{tokenize()}.
|
||||||
|
|
||||||
The first parameter, \var{readline}, must be a callable object which
|
The first parameter, \var{readline}, must be a callable object which
|
||||||
provides the same interface as \method{readline()} method of
|
provides the same interface as the \method{readline()} method of
|
||||||
built-in file objects (see section~\ref{bltin-file-objects}). Each
|
built-in file objects (see section~\ref{bltin-file-objects}). Each
|
||||||
call to the function should return one line of input as a string.
|
call to the function should return one line of input as a string.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue