summaryrefslogtreecommitdiff
path: root/Lib/pickle.py
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2008-05-03 01:42:49 +0000
committerAlexandre Vassalotti <alexandre@peadrop.com>2008-05-03 01:42:49 +0000
commit8cb02b6000c66478406c12270a9f86e39fd20305 (patch)
treee5fc40990babb1f73000bda5de18dfbceed23136 /Lib/pickle.py
parent3fe8216f338317089aa727241f70de71681f2e0a (diff)
downloadcpython-git-8cb02b6000c66478406c12270a9f86e39fd20305.tar.gz
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.
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r--Lib/pickle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py
index ea8d8b545f..a9d4355b0b 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -39,7 +39,7 @@ __all__ = ["PickleError", "PicklingError", "UnpicklingError", "Pickler",
"Unpickler", "dump", "dumps", "load", "loads"]
# Shortcut for use in isinstance testing
-bytes_types = (bytes, bytearray, memoryview)
+bytes_types = (bytes, bytearray)
# These are purely informational; no code uses these.
format_version = "3.0" # File format version we write