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
a30cf9f3
Commit
a30cf9f3
authored
Mar 30, 2014
by
Paul Sokolovsky
Browse files
objzip: Use mp_identity().
parent
230fec77
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/objzip.c
View file @
a30cf9f3
...
...
@@ -25,10 +25,6 @@ STATIC mp_obj_t zip_make_new(mp_obj_t type_in, uint n_args, uint n_kw, const mp_
return
o
;
}
STATIC
mp_obj_t
zip_getiter
(
mp_obj_t
self_in
)
{
return
self_in
;
}
STATIC
mp_obj_t
zip_iternext
(
mp_obj_t
self_in
)
{
assert
(
MP_OBJ_IS_TYPE
(
self_in
,
&
mp_type_zip
));
mp_obj_zip_t
*
self
=
self_in
;
...
...
@@ -54,6 +50,6 @@ const mp_obj_type_t mp_type_zip = {
{
&
mp_type_type
},
.
name
=
MP_QSTR_zip
,
.
make_new
=
zip_make_new
,
.
getiter
=
zip_ge
tit
er
,
.
getiter
=
mp_iden
tit
y
,
.
iternext
=
zip_iternext
,
};
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