D3320: lock: don't use 'file' as a variable name
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Fri Apr 13 20:47:27 UTC 2018
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
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
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list