Skip to content

Commit

Permalink
Avoid a new deprecation warning from filelock dependency (#2237)
Browse files Browse the repository at this point in the history
Co-authored-by: Bernát Gábor <[email protected]>
  • Loading branch information
ofek and gaborbernat authored Dec 26, 2021
1 parent bf56915 commit 1f1fdc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/changelog/2237.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Avoid deprecation warning from py-filelock argument - by :user:`ofek`.
4 changes: 2 additions & 2 deletions src/virtualenv/util/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ def __init__(self, lock_file):
self.count = 0
self.thread_safe = RLock()

def acquire(self, timeout=None, poll_intervall=0.05):
def acquire(self, timeout=None, poll_interval=0.05):
with self.thread_safe:
if self.count == 0:
super(_CountedFileLock, self).acquire(timeout=timeout, poll_intervall=poll_intervall)
super(_CountedFileLock, self).acquire(timeout, poll_interval)
self.count += 1

def release(self, force=False):
Expand Down

0 comments on commit 1f1fdc9

Please sign in to comment.