mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Move clear method from bytes to bytearray
This commit is contained in:
@@ -30,6 +30,6 @@ assert not bytearray(b'tuPpEr').isupper()
|
||||
assert bytearray(b'Is Title Case').istitle()
|
||||
assert not bytearray(b'is Not title casE').istitle()
|
||||
|
||||
a = b'abcd'
|
||||
a = bytearray(b'abcd')
|
||||
a.clear()
|
||||
assert len(a) == 0
|
||||
|
||||
Reference in New Issue
Block a user