D897: context: rename local 'attr' to 'attr_'
sid0 (Siddharth Agarwal)
phabricator at mercurial-scm.org
Mon Oct 2 13:23:14 EDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG52e9310626a8: context: rename local 'attr' to 'attr_' (authored by sid0, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D897?vs=2318&id=2339
REVISION DETAIL
https://phab.mercurial-scm.org/D897
AFFECTED FILES
mercurial/context.py
CHANGE DETAILS
diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -2420,9 +2420,9 @@
if reusable:
# copy extra fields from originalfctx
attrs = ['rawdata', 'rawflags', '_filenode', '_filerev']
- for attr in attrs:
- if util.safehasattr(originalfctx, attr):
- setattr(self, attr, getattr(originalfctx, attr))
+ for attr_ in attrs:
+ if util.safehasattr(originalfctx, attr_):
+ setattr(self, attr_, getattr(originalfctx, attr_))
def data(self):
return self._datafunc()
To: sid0, #hg-reviewers, indygreg
Cc: indygreg, mercurial-devel
More information about the Mercurial-devel
mailing list