Commits

Matt Chaput  committed 8c27aa3

Fixed misnamed keyword argument. See issue #128.

  • Participants
  • Parent commits 53838a4

Comments (0)

Files changed (1)

File src/whoosh/filedb/filewriting.py

 
 class SegmentWriter(IndexWriter):
     def __init__(self, ix, poolclass=None, procs=0, blocklimit=128,
-                 timeout=0.0, delay=0.1, name=None, _l=True, **poolargs):
+                 timeout=0.0, delay=0.1, name=None, _lk=True, **poolargs):
         
         self.writelock = None
-        if _l:
+        if _lk:
             self.writelock = ix.lock("WRITELOCK")
             if not try_for(self.writelock.acquire, timeout=timeout, delay=delay):
                 raise LockError