Skip to content

Commit

Permalink
Make exception message match CPython
Browse files Browse the repository at this point in the history
  • Loading branch information
bnmnetp committed Jun 24, 2014
1 parent f3bf87b commit b644f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Sk.builtin.list.prototype.list_ass_slice_ = function(ilow, ihigh, v)
if (v.tp$iter) {
args = new Sk.builtin.list(v).v.slice(0)
} else {
throw new Sk.builtin.TypeError("You must assign an iterable to a slice")
throw new Sk.builtin.TypeError("can only assign an iterable")
}
args.unshift(ihigh - ilow);
args.unshift(ilow);
Expand Down

0 comments on commit b644f10

Please sign in to comment.