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

login
register
mail settings
Submitter phabricator
Date April 13, 2018, 10:22 p.m.
Message ID <50047451be78f47f7ac24bf9def46953@localhost.localdomain>
Download mbox | patch
Permalink /patch/30941/
State Not Applicable
Headers show

Comments

phabricator - April 13, 2018, 10:22 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG575f59cdd8a1: lock: don&#039;t use &#039;file&#039; as a variable name (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3320?vs=8140&id=8196

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

AFFECTED FILES
  mercurial/lock.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, durin42
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