summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-05-31 16:41:59 (GMT)
committerGeorg Brandl <georg@python.org>2009-05-31 16:41:59 (GMT)
commita35f4b99158f4c5a4b237e76ed1d776d28170d4d (patch)
tree43345942a1805495828ede4027eb0dcf3e0c2592
parent438a43a72f4a43986fc0ae2b3c356728b4b7b683 (diff)
downloadcpython-a35f4b99158f4c5a4b237e76ed1d776d28170d4d.zip
cpython-a35f4b99158f4c5a4b237e76ed1d776d28170d4d.tar.gz
cpython-a35f4b99158f4c5a4b237e76ed1d776d28170d4d.tar.bz2
#6155: remove usage of cPickle.
-rw-r--r--Doc/library/logging.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 5dc4af3..cb7c3fa 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