mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Real pickling for bytes.
Restore complex pickling. Use cPickle in io.py.
This commit is contained in:
parent
0ad0812edb
commit
0dd32e246c
3 changed files with 29 additions and 6 deletions
|
@ -30,10 +30,14 @@ __all__ = ["BlockingIOError", "open", "IOBase", "RawIOBase", "FileIO",
|
|||
import os
|
||||
import sys
|
||||
import codecs
|
||||
import pickle
|
||||
import _fileio
|
||||
import warnings
|
||||
|
||||
try:
|
||||
import cPickle as pickle
|
||||
except ImportError:
|
||||
import pickle
|
||||
|
||||
# XXX Shouldn't we use st_blksize whenever we can?
|
||||
DEFAULT_BUFFER_SIZE = 8 * 1024 # bytes
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue