File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -169,9 +169,11 @@ class IndexedGzipFile(io.BufferedReader):
169
169
return self .read(nbytes)
170
170
171
171
172
- def __reduce__ (self ):
172
+ def __reduce_ex__ (self , protocol ):
173
173
""" Used to pickle an ``IndexedGzipFile``.
174
174
175
+ :arg protocol: Pickle protocol version
176
+
175
177
Returns a tuple containing:
176
178
- a reference to the ``unpickle`` function
177
179
- a tuple containing a "state" object, which can be passed
@@ -1093,7 +1095,7 @@ def unpickle(state):
1093
1095
""" Create a new ``IndexedGzipFile`` from a pickled state.
1094
1096
1095
1097
:arg state: State of a pickled object, as returned by the
1096
- ``IndexedGzipFile.__reduce__ `` method.
1098
+ ``IndexedGzipFile.__reduce_ex__ `` method.
1097
1099
1098
1100
:returns: A new ``IndexedGzipFile`` object.
1099
1101
"""
You can’t perform that action at this time.
0 commit comments