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
440bbd0e
Commit
440bbd0e
authored
Sep 08, 2016
by
Martin Panter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct occurance → occurrence; extracted from patch by Georg Brandl
parent
6507657d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Objects/bytearrayobject.c
Objects/bytearrayobject.c
+2
-2
Objects/stringobject.c
Objects/stringobject.c
+1
-1
No files found.
Objects/bytearrayobject.c
View file @
440bbd0e
...
...
@@ -1990,7 +1990,7 @@ replace(PyByteArrayObject *self,
}
if
(
to_len
==
0
)
{
/* delete all occur
a
nces of 'from' bytes */
/* delete all occur
re
nces of 'from' bytes */
if
(
from_len
==
1
)
{
return
replace_delete_single_character
(
self
,
from_s
[
0
],
maxcount
);
...
...
@@ -2399,7 +2399,7 @@ bytearray_pop(PyByteArrayObject *self, PyObject *args)
PyDoc_STRVAR
(
remove__doc__
,
"B.remove(int) -> None
\n
\
\n
\
Remove the first occur
a
nce of a value in B."
);
Remove the first occur
re
nce of a value in B."
);
static
PyObject
*
bytearray_remove
(
PyByteArrayObject
*
self
,
PyObject
*
arg
)
{
...
...
Objects/stringobject.c
View file @
440bbd0e
...
...
@@ -2775,7 +2775,7 @@ replace(PyStringObject *self,
}
if
(
to_len
==
0
)
{
/* delete all occur
a
nces of 'from' string */
/* delete all occur
re
nces of 'from' string */
if
(
from_len
==
1
)
{
return
replace_delete_single_character
(
self
,
from_s
[
0
],
maxcount
);
...
...
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