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
5467186b
Commit
5467186b
authored
Jul 17, 2014
by
Damien George
Browse files
py: Remove unnecessary argument in bytearray print.
parent
e3737b85
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/objarray.c
View file @
5467186b
...
...
@@ -59,7 +59,7 @@ STATIC mp_obj_t array_append(mp_obj_t self_in, mp_obj_t arg);
STATIC
void
array_print
(
void
(
*
print
)(
void
*
env
,
const
char
*
fmt
,
...),
void
*
env
,
mp_obj_t
o_in
,
mp_print_kind_t
kind
)
{
mp_obj_array_t
*
o
=
o_in
;
if
(
o
->
typecode
==
BYTEARRAY_TYPECODE
)
{
print
(
env
,
"bytearray(b"
,
o
->
typecode
);
print
(
env
,
"bytearray(b"
);
mp_str_print_quoted
(
print
,
env
,
o
->
items
,
o
->
len
,
true
);
}
else
{
print
(
env
,
"array('%c'"
,
o
->
typecode
);
...
...
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