Skip to content

Commit

Permalink
Remove bytes-like part from __int__() TypeError message
Browse files Browse the repository at this point in the history
  • Loading branch information
cflee committed Mar 30, 2016
1 parent 8147e29 commit 757df74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/common/org/Python.java
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ public static org.python.types.Int int_cast(org.python.Object x, org.python.Obje
try {
return (org.python.types.Int) x.__int__();
} catch (org.python.exceptions.AttributeError ae) {
throw new org.python.exceptions.TypeError("int() argument must be a string, a bytes-like object or a number, not '" + x.typeName() + "'");
throw new org.python.exceptions.TypeError("int() argument must be a string or a number, not '" + x.typeName() + "'");
}
} else {
throw new org.python.exceptions.NotImplementedError("int() with a base is not implemented");
Expand Down

0 comments on commit 757df74

Please sign in to comment.