registrar: don't i18n ProgrammingError message
authorMartin von Zweigbergk <martinvonz@google.com>
Wed, 18 Oct 2017 22:10:08 -0700
changeset 34896 97017508c863
parent 34895 7b857c5947ec
child 34897 2e350d2a0eca
registrar: don't i18n ProgrammingError message Differential Revision: https://phab.mercurial-scm.org/D1188
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