[Commented On] D8854: templates: add __init__.py files to templates/ dirs
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Tue Aug 4 02:59:52 UTC 2020
indygreg added a comment.
Having thought about this a bit more, I think using the `importlib.resources` high-level APIs are better. i.e. this series as-is is fine.
Since Python is talking about yet another low-level loader API, presumably the high-level APIs will be forwards compatible with whatever new low-level APIs are introduced in the future. This future proofs Mercurial.
The downside, unfortunately, is we need to introduce extra packages/`__init__.py` files. But this feels like a small price to pay.
REPOSITORY
rHG Mercurial
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8854/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8854
To: martinvonz, #hg-reviewers, indygreg
Cc: indygreg, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200804/3bc264ff/attachment-0002.html>
More information about the Mercurial-patches
mailing list