Mercurial > public > mercurial-scm > hg-stable
diff hgext/fastannotate/context.py @ 43087:66f2cc210a29
py3: manually import pycompat.setattr where it is needed
Continuing to eliminate the implicit import of symbols in the
Python 3 source transformer so we can eliminate it.
Differential Revision: https://phab.mercurial-scm.org/D7007
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 06 Oct 2019 14:58:42 -0400 |
parents | eef9a2d67051 |
children | c59eb1560c44 |
line wrap: on
line diff
--- a/hgext/fastannotate/context.py Sun Oct 06 14:51:45 2019 -0400 +++ b/hgext/fastannotate/context.py Sun Oct 06 14:58:42 2019 -0400 @@ -13,7 +13,10 @@ import os from mercurial.i18n import _ -from mercurial.pycompat import open +from mercurial.pycompat import ( + open, + setattr, +) from mercurial import ( error, linelog as linelogmod,