Move clear method from bytes to bytearray

This commit is contained in:
janczer
2019-02-19 07:11:13 +01:00
parent 58369b6fbc
commit d5c91a8de0
3 changed files with 18 additions and 14 deletions

View File

@@ -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