]> granicus.if.org Git - python/commitdiff
#6155: remove usage of cPickle.
authorGeorg Brandl <georg@python.org>
Sun, 31 May 2009 16:41:59 +0000 (16:41 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 31 May 2009 16:41:59 +0000 (16:41 +0000)
Doc/library/logging.rst

index 5dc4af365d361a55bf974541cbf3140e1230e020..cb7c3fa93900d6e3a7e528cdd7e09da87aff49b6 100644 (file)
@@ -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