File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -737,6 +737,14 @@ mmap_seek_method(mmap_object *self, PyObject *args)
737737 return NULL ;
738738}
739739
740+
741+ static PyObject *
742+ mmap_seekable_method (mmap_object * self , PyObject * unused )
743+ {
744+ Py_RETURN_TRUE ;
745+ }
746+
747+
740748static PyObject *
741749mmap_move_method (mmap_object * self , PyObject * args )
742750{
@@ -905,6 +913,7 @@ static struct PyMethodDef mmap_object_methods[] = {
905913 {"readline" , (PyCFunction ) mmap_read_line_method , METH_NOARGS },
906914 {"resize" , (PyCFunction ) mmap_resize_method , METH_VARARGS },
907915 {"seek" , (PyCFunction ) mmap_seek_method , METH_VARARGS },
916+ {"seekable" , (PyCFunction ) mmap_seekable_method , METH_NOARGS },
908917 {"size" , (PyCFunction ) mmap_size_method , METH_NOARGS },
909918 {"tell" , (PyCFunction ) mmap_tell_method , METH_NOARGS },
910919 {"write" , (PyCFunction ) mmap_write_method , METH_VARARGS },
You can’t perform that action at this time.
0 commit comments