changeset 34896:97017508c863

registrar: don't i18n ProgrammingError message Differential Revision: https://phab.mercurial-scm.org/D1188
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 18 Oct 2017 22:10:08 -0700
parents 7b857c5947ec
children 2e350d2a0eca
files mercurial/registrar.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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