Skip to content

Commit e5204ec

Browse files
committed
Fix: created type 'bytes' instead of 'bytearray'.
1 parent a81cb6b commit e5204ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,10 +531,10 @@ boolean endswith(PByteArray self, PIBytesLike suffix, @SuppressWarnings("unused"
531531
@GenerateNodeFactory
532532
public abstract static class JoinNode extends PythonBinaryBuiltinNode {
533533
@Specialization
534-
public PBytes join(PByteArray bytes, Object iterable,
534+
public PByteArray join(PByteArray bytes, Object iterable,
535535
@Cached("create()") SequenceStorageNodes.ToByteArrayNode toByteArrayNode,
536536
@Cached("create()") BytesNodes.BytesJoinNode bytesJoinNode) {
537-
return factory().createBytes(bytesJoinNode.execute(toByteArrayNode.execute(bytes.getSequenceStorage()), iterable));
537+
return factory().createByteArray(bytesJoinNode.execute(toByteArrayNode.execute(bytes.getSequenceStorage()), iterable));
538538
}
539539

540540
@Fallback

0 commit comments

Comments
 (0)