Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
8562de6c
Commit
8562de6c
authored
Mar 23, 2014
by
xbe
Browse files
py/objstr.c: Remove done TODOs.
parent
4750a839
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/objstr.c
View file @
8562de6c
...
...
@@ -392,7 +392,6 @@ STATIC mp_obj_t str_find(uint n_args, const mp_obj_t *args) {
machine_uint_t
start
=
0
;
machine_uint_t
end
=
haystack_len
;
/* TODO use a non-exception-throwing mp_get_index */
if
(
n_args
>=
3
&&
args
[
2
]
!=
mp_const_none
)
{
start
=
mp_get_index
(
&
str_type
,
haystack_len
,
args
[
2
],
true
);
}
...
...
@@ -601,7 +600,6 @@ STATIC mp_obj_t str_count(uint n_args, const mp_obj_t *args) {
machine_uint_t
start
=
0
;
machine_uint_t
end
=
haystack_len
;
/* TODO use a non-exception-throwing mp_get_index */
if
(
n_args
>=
3
&&
args
[
2
]
!=
mp_const_none
)
{
start
=
mp_get_index
(
&
str_type
,
haystack_len
,
args
[
2
],
true
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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