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
f3b05449
Commit
f3b05449
authored
Jan 31, 2014
by
Damien George
Browse files
Merge branch 'fix_str_call' of github.com:msiemens/micropython into msiemens-fix_str_call
parents
94f68300
2c2a124e
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/runtime.c
View file @
f3b05449
...
...
@@ -739,6 +739,8 @@ mp_obj_t rt_call_function_n_kw(mp_obj_t fun_in, uint n_args, uint n_kw, const mp
if
(
MP_OBJ_IS_SMALL_INT
(
fun_in
))
{
nlr_jump
(
mp_obj_new_exception_msg
(
MP_QSTR_TypeError
,
"'int' object is not callable"
));
}
else
if
(
MP_OBJ_IS_STR
(
fun_in
))
{
nlr_jump
(
mp_obj_new_exception_msg
(
MP_QSTR_TypeError
,
"'str' object is not callable"
));
}
else
{
mp_obj_base_t
*
fun
=
fun_in
;
if
(
fun
->
type
->
call
!=
NULL
)
{
...
...
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