Patchwork D3320: lock: don't use 'file' as a variable name

login
register
mail settings
Submitter phabricator
Date April 13, 2018, 8:47 p.m.
Message ID <differential-rev-PHID-DREV-f3tlcoxabwhtlcbxxybo-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30882/
State Superseded
Headers show

Comments

phabricator - April 13, 2018, 8:47 p.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3320

AFFECTED FILES
  mercurial/lock.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/lock.py b/mercurial/lock.py
--- a/mercurial/lock.py
+++ b/mercurial/lock.py
@@ -175,11 +175,11 @@ 
 
     _host = None
 
-    def __init__(self, vfs, file, timeout=-1, releasefn=None, acquirefn=None,
+    def __init__(self, vfs, fname, timeout=-1, releasefn=None, acquirefn=None,
                  desc=None, inheritchecker=None, parentlock=None,
                  dolock=True):
         self.vfs = vfs
-        self.f = file
+        self.f = fname
         self.held = 0
         self.timeout = timeout
         self.releasefn = releasefn