HomePhabricator

templater: fix reading of templates in frozen binaries with py3 < 3.7

Authored by martinvonz.

Description

templater: fix reading of templates in frozen binaries with py3 < 3.7

When using a frozen binary with py3 < 3.7, there's no
importlib.resources module, so we use the code path that reads the
resources from the file system. That code path expects bytes for
package name and resource name.

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

Details

Committed
martinvonzFri, Sep 11, 1:00 AM
Differential Revision
D9008: templater: fix reading of templates in frozen binaries with py3 < 3.7
Parents
rHG47d10ade5bc4: histedit: cache description line
Branches
Unknown
Tags
Unknown