Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9686827a
Commit
9686827a
authored
Nov 25, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#19620: Fix typo in docstring (noticed by Christopher Welborn).
parent
d1b5ac35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Lib/lib2to3/pgen2/tokenize.py
Lib/lib2to3/pgen2/tokenize.py
+2
-2
Lib/tokenize.py
Lib/tokenize.py
+1
-1
No files found.
Lib/lib2to3/pgen2/tokenize.py
View file @
9686827a
...
@@ -252,7 +252,7 @@ def _get_normal_name(orig_enc):
...
@@ -252,7 +252,7 @@ def _get_normal_name(orig_enc):
def detect_encoding(readline):
def detect_encoding(readline):
"""
"""
The detect_encoding() function is used to detect the encoding that should
The detect_encoding() function is used to detect the encoding that should
be used to decode a Python source file. It requires one argment, readline,
be used to decode a Python source file. It requires one arg
u
ment, readline,
in the same way as the tokenize() generator.
in the same way as the tokenize() generator.
It will call readline a maximum of twice, and return the encoding used
It will call readline a maximum of twice, and return the encoding used
...
@@ -343,7 +343,7 @@ def untokenize(iterable):
...
@@ -343,7 +343,7 @@ def untokenize(iterable):
def generate_tokens(readline):
def generate_tokens(readline):
"""
"""
The generate_tokens() generator requires one argment, readline, which
The generate_tokens() generator requires one arg
u
ment, readline, which
must be a callable object which provides the same interface as the
must be a callable object which provides the same interface as the
readline() method of built-in file objects. Each call to the function
readline() method of built-in file objects. Each call to the function
should return one line of input as a string. Alternately, readline
should return one line of input as a string. Alternately, readline
...
...
Lib/tokenize.py
View file @
9686827a
...
@@ -333,7 +333,7 @@ def _get_normal_name(orig_enc):
...
@@ -333,7 +333,7 @@ def _get_normal_name(orig_enc):
def detect_encoding(readline):
def detect_encoding(readline):
"""
"""
The
detect_encoding
()
function
is
used
to
detect
the
encoding
that
should
The
detect_encoding
()
function
is
used
to
detect
the
encoding
that
should
be
used
to
decode
a
Python
source
file
.
It
requires
one
argment
,
readline
,
be
used
to
decode
a
Python
source
file
.
It
requires
one
arg
u
ment
,
readline
,
in
the
same
way
as
the
tokenize
()
generator
.
in
the
same
way
as
the
tokenize
()
generator
.
It
will
call
readline
a
maximum
of
twice
,
and
return
the
encoding
used
It
will
call
readline
a
maximum
of
twice
,
and
return
the
encoding
used
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment