Mercurial > hg
comparison hgext/fastannotate/context.py @ 50929:18c8c18993f0
pycompat: drop usage of hasattr/getattr/setattr/delatt proxy
The function remains to ease extensions transition, but we no longer use them in
core.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 01 Sep 2023 00:09:55 +0200 |
parents | d718eddf01d9 |
children | 493034cc3265 |
comparison
equal
deleted
inserted
replaced
50928:d718eddf01d9 | 50929:18c8c18993f0 |
---|---|
10 import contextlib | 10 import contextlib |
11 import os | 11 import os |
12 | 12 |
13 from mercurial.i18n import _ | 13 from mercurial.i18n import _ |
14 from mercurial.pycompat import ( | 14 from mercurial.pycompat import ( |
15 getattr, | |
16 open, | 15 open, |
17 setattr, | |
18 ) | 16 ) |
19 from mercurial.node import ( | 17 from mercurial.node import ( |
20 bin, | 18 bin, |
21 hex, | 19 hex, |
22 short, | 20 short, |