Kaydet (Commit) f70a538f authored tarafından Jesse Noller's avatar Jesse Noller

Issues #10867: remove old cPickle imports from multiprocessing

üst 38d54f78
......@@ -151,14 +151,10 @@ else:
import _subprocess
import time
from pickle import dump, load, HIGHEST_PROTOCOL
from ._multiprocessing import win32, Connection, PipeConnection
from .util import Finalize
#try:
# from cPickle import dump, load, HIGHEST_PROTOCOL
#except ImportError:
from pickle import load, HIGHEST_PROTOCOL
def dump(obj, file, protocol=None):
ForkingPickler(file, protocol).dump(obj)
......
......@@ -21,16 +21,12 @@ import array
import queue
from traceback import format_exc
from pickle import PicklingError
from multiprocessing import Process, current_process, active_children, Pool, util, connection
from multiprocessing.process import AuthenticationString
from multiprocessing.forking import exit, Popen, assert_spawning, ForkingPickler
from multiprocessing.util import Finalize, info
try:
from cPickle import PicklingError
except ImportError:
from pickle import PicklingError
#
# Register some things for pickling
#
......
......@@ -132,6 +132,9 @@ Core and Builtins
Library
-------
- Issue #10867: Remove python2.x try: except: imports for old cPickle from
multiprocessing.
- Issue #4959: inspect.formatargspec now works for keyword only arguments
without defaults.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment