# HG changeset patch # User Martin von Zweigbergk # Date 1508389808 25200 # Node ID 97017508c86306a4eebe8e441c96629186d2e359 # Parent 7b857c5947ec4afffd7b90a94081098b3706d726 registrar: don't i18n ProgrammingError message Differential Revision: https://phab.mercurial-scm.org/D1188 diff -r 7b857c5947ec -r 97017508c863 mercurial/registrar.py --- a/mercurial/registrar.py Wed Oct 18 22:07:53 2017 -0700 +++ b/mercurial/registrar.py Wed Oct 18 22:10:08 2017 -0700 @@ -7,7 +7,6 @@ from __future__ import absolute_import -from .i18n import _ from . import ( configitems, error, @@ -155,8 +154,8 @@ cmdtype=unrecoverablewrite): if cmdtype not in self.possiblecmdtypes: - raise error.ProgrammingError(_("unknown cmdtype value '%s' for " - "'%s' command") % (cmdtype, name)) + raise error.ProgrammingError("unknown cmdtype value '%s' for " + "'%s' command" % (cmdtype, name)) func.norepo = norepo func.optionalrepo = optionalrepo func.inferrepo = inferrepo