HomePhabricator

templates: add __init__.py files to templates/ dirs

Authored by martinvonz.

Description

templates: add __init__.py files to templates/ dirs

This is necessary for them to be loaded with importlib.resources,
which we want to do for PyOxidizer and similar. importlib.resources
cannot read resources from submodules
(resources.open_binary('mercurial.templates', 'coal/map') is not
valid), so we need one __init__.py per directory.

Differential Revision: https://phab.mercurial-scm.org/D8854

Details

Committed
martinvonzDec 12 2019, 3:41 PM
Differential Revision
D8854: templates: add __init__.py files to templates/ dirs
Parents
rHGfa18b02df8dd: merge with stable
Branches
Unknown
Tags
Unknown