Mercurial > public > mercurial-scm > hg
comparison mercurial/ui.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 |
comparison
equal
deleted
inserted
replaced
43086:bbcbb82e3589 | 43087:66f2cc210a29 |
---|---|
20 import sys | 20 import sys |
21 import traceback | 21 import traceback |
22 | 22 |
23 from .i18n import _ | 23 from .i18n import _ |
24 from .node import hex | 24 from .node import hex |
25 from .pycompat import open | 25 from .pycompat import ( |
26 open, | |
27 setattr, | |
28 ) | |
26 | 29 |
27 from . import ( | 30 from . import ( |
28 color, | 31 color, |
29 config, | 32 config, |
30 configitems, | 33 configitems, |