sid0 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers.
REVISION SUMMARY In the next diff we're going to import mercurial.thirdparty.attr, and pyflakes complains about this if this rename isn't done. REPOSITORY rHG Mercurial 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 Cc: mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel