Commits

Gregory Petukhov committed f9fcf62

Fix pickle & clone bug in curl transport

Comments (0)

Files changed (1)

grab/transport/curl.py

         state['curl'] = None
         return state
 
+    def __setstate__(self, state):
+        """
+        Create pycurl instance after Grag instance was restored
+        from pickled state.
+        """
+
+        state['curl'] = pycurl.Curl()
+        self.__dict__ = state
+
+
 
 
 #from ..base import BaseGrab