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
153a27ce
Commit
153a27ce
authored
Dec 15, 1999
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do_strip(): Fixed cut-and-paste error; this function should check for
zero arguments (found by Marc Lemburg).
parent
cd975761
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
Objects/stringobject.c
Objects/stringobject.c
+1
-3
No files found.
Objects/stringobject.c
View file @
153a27ce
...
...
@@ -925,10 +925,8 @@ do_strip(self, args, striptype)
{
char
*
s
=
PyString_AS_STRING
(
self
);
int
len
=
PyString_GET_SIZE
(
self
),
i
,
j
;
PyObject
*
scobj
=
NULL
;
int
count
=
-
1
;
if
(
!
PyArg_ParseTuple
(
args
,
"
|Oi"
,
scobj
,
count
))
if
(
!
PyArg_ParseTuple
(
args
,
"
"
))
return
NULL
;
i
=
0
;
...
...
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