HomePhabricator

templatespec: move check for non-unicode to lower-level function

Authored by martinvonz.

Description

templatespec: move check for non-unicode to lower-level function

Now that we have the factory functions, it makes sense to have the
check there.

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