Skip to content

Commit

Permalink
fix mod op and implement in-place or operator
Browse files Browse the repository at this point in the history
Signed-off-by: Jenna Hight <[email protected]>
  • Loading branch information
jennahight committed May 29, 2017
1 parent 700bd9b commit c66d21d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions batavia/types/Tuple.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ Tuple.prototype.__floordiv__ = function(other) {
if (types.isinstance(other, types.Complex)) {
throw new exceptions.TypeError.$pyclass("can't take floor of complex number.")
} else {
throw new exceptions.TypeError.$pyclass("unsupported operand type(s) for //: 'tuple' and '" + type_name(other) + "'")
throw new exceptions.TypeError.$pyclass("unsupported operand type(s) for //=: 'tuple' and '" + type_name(other) + "'")
}
}

Expand Down Expand Up @@ -441,7 +441,7 @@ Tuple.prototype.__ifloordiv__ = function(other) {
if (types.isinstance(other, types.Complex)) {
throw new exceptions.TypeError.$pyclass("can't take floor of complex number.")
} else {
throw new exceptions.TypeError.$pyclass("unsupported operand type(s) for //: 'tuple' and '" + type_name(other) + "'")
throw new exceptions.TypeError.$pyclass("unsupported operand type(s) for //=: 'tuple' and '" + type_name(other) + "'")
}
}

Expand Down

0 comments on commit c66d21d

Please sign in to comment.