Commits

Lele Gaifax committed b2520fc

Corrected implementation, using consistent syntax

Comments (0)

Files changed (1)

src/whoosh/writing.py

             getattr(writer, method)(*args, **kwargs)
         writer.commit(*self.commitargs, **self.commitkwargs)
     
-    def delete_document(self, docnum):
-        self._record("delete_document", docnum, {})
+    def delete_document(self, *args, **kwargs):
+        self._record("delete_document", args, kwargs)
     
     def add_document(self, *args, **kwargs):
         self._record("add_document", args, kwargs)