Skip to content

Commit fe756ab

Browse files
committed
minor - removed redundant err msg
1 parent dfd61e9 commit fe756ab

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/bytes/BytesBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ boolean contains(VirtualFrame frame, PByteArray self, Object other,
569569

570570
@Fallback
571571
boolean contains(@SuppressWarnings("unused") Object self, Object other) {
572-
throw raise(TypeError, ErrorMessages.BYTES_OBJ_REQUIRED, other);
572+
throw raise(TypeError, ErrorMessages.BYTESLIKE_OBJ_REQUIRED, other);
573573
}
574574

575575
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/ErrorMessages.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ public abstract class ErrorMessages {
8787
public static final String BYTE_STR_IS_TOO_LARGE = "byte string is too large";
8888
public static final String BYTEARRAY_OUT_OF_BOUNDS = "bytearray index out of range";
8989
public static final String BYTEORDER_MUST_BE_LITTLE_OR_BIG = "byteorder must be either 'little' or 'big'";
90-
public static final String BYTES_OBJ_REQUIRED = "a bytes-like object is required, not '%p'";
9190
public static final String BYTESLIKE_OBJ_REQUIRED = "a bytes-like object is required, not '%p'";
9291
public static final String C_ARG_NOT_IN_RANGE = "%c arg not in range(0x%s)";
9392
public static final String CALL_STACK_NOT_DEEP_ENOUGH = "call stack is not deep enough";

0 commit comments

Comments
 (0)