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
3c38dccf
Commit
3c38dccf
authored
Apr 05, 2016
by
Martin Panter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos in documentation and comments
parent
ed06e8fa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
Include/unicodeobject.h
Include/unicodeobject.h
+1
-1
Lib/test/test_argparse.py
Lib/test/test_argparse.py
+5
-5
Misc/NEWS
Misc/NEWS
+1
-1
README
README
+1
-1
No files found.
Include/unicodeobject.h
View file @
3c38dccf
...
@@ -1318,7 +1318,7 @@ PyAPI_FUNC(PyObject *) PyUnicode_Format(
...
@@ -1318,7 +1318,7 @@ PyAPI_FUNC(PyObject *) PyUnicode_Format(
/* Checks whether element is contained in container and return 1/0
/* Checks whether element is contained in container and return 1/0
accordingly.
accordingly.
element has to coerce to a
n
one element Unicode string. -1 is
element has to coerce to a one element Unicode string. -1 is
returned in case of an error. */
returned in case of an error. */
PyAPI_FUNC
(
int
)
PyUnicode_Contains
(
PyAPI_FUNC
(
int
)
PyUnicode_Contains
(
...
...
Lib/test/test_argparse.py
View file @
3c38dccf
...
@@ -548,7 +548,7 @@ class TestOptionalsNargsDefault(ParserTestCase):
...
@@ -548,7 +548,7 @@ class TestOptionalsNargsDefault(ParserTestCase):
class
TestOptionalsNargs1
(
ParserTestCase
):
class
TestOptionalsNargs1
(
ParserTestCase
):
"""Tests specifying
the
1 arg for an Optional"""
"""Tests specifying 1 arg for an Optional"""
argument_signatures
=
[
Sig
(
'-x'
,
nargs
=
1
)]
argument_signatures
=
[
Sig
(
'-x'
,
nargs
=
1
)]
failures
=
[
'a'
,
'-x'
]
failures
=
[
'a'
,
'-x'
]
...
@@ -559,7 +559,7 @@ class TestOptionalsNargs1(ParserTestCase):
...
@@ -559,7 +559,7 @@ class TestOptionalsNargs1(ParserTestCase):
class
TestOptionalsNargs3
(
ParserTestCase
):
class
TestOptionalsNargs3
(
ParserTestCase
):
"""Tests specifying
the
3 args for an Optional"""
"""Tests specifying 3 args for an Optional"""
argument_signatures
=
[
Sig
(
'-x'
,
nargs
=
3
)]
argument_signatures
=
[
Sig
(
'-x'
,
nargs
=
3
)]
failures
=
[
'a'
,
'-x'
,
'-x a'
,
'-x a b'
,
'a -x'
,
'a -x b'
]
failures
=
[
'a'
,
'-x'
,
'-x a'
,
'-x a b'
,
'a -x'
,
'a -x b'
]
...
@@ -593,7 +593,7 @@ class TestOptionalsNargsOptional(ParserTestCase):
...
@@ -593,7 +593,7 @@ class TestOptionalsNargsOptional(ParserTestCase):
class
TestOptionalsNargsZeroOrMore
(
ParserTestCase
):
class
TestOptionalsNargsZeroOrMore
(
ParserTestCase
):
"""Tests specifying a
n a
rgs for an Optional that accepts zero or more"""
"""Tests specifying args for an Optional that accepts zero or more"""
argument_signatures
=
[
argument_signatures
=
[
Sig
(
'-x'
,
nargs
=
'*'
),
Sig
(
'-x'
,
nargs
=
'*'
),
...
@@ -612,7 +612,7 @@ class TestOptionalsNargsZeroOrMore(ParserTestCase):
...
@@ -612,7 +612,7 @@ class TestOptionalsNargsZeroOrMore(ParserTestCase):
class
TestOptionalsNargsOneOrMore
(
ParserTestCase
):
class
TestOptionalsNargsOneOrMore
(
ParserTestCase
):
"""Tests specifying a
n a
rgs for an Optional that accepts one or more"""
"""Tests specifying args for an Optional that accepts one or more"""
argument_signatures
=
[
argument_signatures
=
[
Sig
(
'-x'
,
nargs
=
'+'
),
Sig
(
'-x'
,
nargs
=
'+'
),
...
@@ -1232,7 +1232,7 @@ class TestPrefixCharacterOnlyArguments(ParserTestCase):
...
@@ -1232,7 +1232,7 @@ class TestPrefixCharacterOnlyArguments(ParserTestCase):
class
TestNargsZeroOrMore
(
ParserTestCase
):
class
TestNargsZeroOrMore
(
ParserTestCase
):
"""Tests specifying a
n a
rgs for an Optional that accepts zero or more"""
"""Tests specifying args for an Optional that accepts zero or more"""
argument_signatures
=
[
Sig
(
'-x'
,
nargs
=
'*'
),
Sig
(
'y'
,
nargs
=
'*'
)]
argument_signatures
=
[
Sig
(
'-x'
,
nargs
=
'*'
),
Sig
(
'y'
,
nargs
=
'*'
)]
failures
=
[]
failures
=
[]
...
...
Misc/NEWS
View file @
3c38dccf
...
@@ -3025,7 +3025,7 @@ Library
...
@@ -3025,7 +3025,7 @@ Library
- Issue #16152: fix tokenize to ignore whitespace at the end of the code when
- Issue #16152: fix tokenize to ignore whitespace at the end of the code when
no newline is found. Patch by Ned Batchelder.
no newline is found. Patch by Ned Batchelder.
- Issue #16230: Fix a crash in select.select() when one the lists changes
- Issue #16230: Fix a crash in select.select() when one
of
the lists changes
size while iterated on. Patch by Serhiy Storchaka.
size while iterated on. Patch by Serhiy Storchaka.
- Issue #16228: Fix a crash in the json module where a list changes size
- Issue #16228: Fix a crash in the json module where a list changes size
...
...
README
View file @
3c38dccf
...
@@ -210,7 +210,7 @@ profile the interpreter execution. Note also that any output, both stdout
...
@@ -210,7 +210,7 @@ profile the interpreter execution. Note also that any output, both stdout
and stderr, that may appear at this step is supressed.
and stderr, that may appear at this step is supressed.
Finally, the last step is to rebuild the interpreter, using the information
Finally, the last step is to rebuild the interpreter, using the information
collected in the previous one. The end result will be a
the
Python binary
collected in the previous one. The end result will be a Python binary
that is optimized and suitable for distribution or production installation.
that is optimized and suitable for distribution or production installation.
...
...
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