From: Georg Brandl Date: Sun, 31 May 2009 16:41:59 +0000 (+0000) Subject: #6155: remove usage of cPickle. X-Git-Tag: v3.1rc2~116 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a35f4b99158f4c5a4b237e76ed1d776d28170d4d;p=python #6155: remove usage of cPickle. --- diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 5dc4af365d..cb7c3fa939 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -1352,7 +1352,7 @@ the receiving end. A simple way of doing this is attaching a At the receiving end, you can set up a receiver using the :mod:`socketserver` module. Here is a basic working example:: - import cPickle + import pickle import logging import logging.handlers import socketserver @@ -1385,7 +1385,7 @@ module. Here is a basic working example:: self.handleLogRecord(record) def unPickle(self, data): - return cPickle.loads(data) + return pickle.loads(data) def handleLogRecord(self, record): # if a name is specified, we use the named logger rather than the one