This patch makes it so we pass in a file-like resource to read from
instead of having _readmapfile() open the file. This is one more
step towards making _readmapfile() able to read resources opened by
from importlib.resources. We still need to pass in the mapfile path
because it's used for loading dependent mapfiles from %include and
__base__, and it's also used for giving the user better error
messages. Besides that, one can safely call _readmapfile() with any
file-like resource after this patch.
Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHGdc10bcd5c08d: templater: start passing resource to read from into _readmapfile()
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage