mirror of
https://github.com/python/cpython
synced 2024-09-21 07:21:44 +00:00
Removed memoryview objects from bytes_types.
memoryview objects have a different API (such as for indexing) than bytes and bytesarray objects, so memoryview objects shouldn't be treated blindly as "bytes" objects.
This commit is contained in:
parent
3fe8216f33
commit
8cb02b6000
|
@ -39,7 +39,7 @@
|
||||||
"Unpickler", "dump", "dumps", "load", "loads"]
|
"Unpickler", "dump", "dumps", "load", "loads"]
|
||||||
|
|
||||||
# Shortcut for use in isinstance testing
|
# Shortcut for use in isinstance testing
|
||||||
bytes_types = (bytes, bytearray, memoryview)
|
bytes_types = (bytes, bytearray)
|
||||||
|
|
||||||
# These are purely informational; no code uses these.
|
# These are purely informational; no code uses these.
|
||||||
format_version = "3.0" # File format version we write
|
format_version = "3.0" # File format version we write
|
||||||
|
|
Loading…
Reference in a new issue