Patchwork D1188: registrar: don't i18n ProgrammingError message

login
register
mail settings
Submitter phabricator
Date Oct. 19, 2017, 5:22 a.m.
Message ID <differential-rev-PHID-DREV-qepqe5wl3g2pzdf5xzpy-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/25232/
State Superseded
Headers show

Comments

phabricator - Oct. 19, 2017, 5:22 a.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1188

AFFECTED FILES
  mercurial/registrar.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/registrar.py b/mercurial/registrar.py
--- a/mercurial/registrar.py
+++ b/mercurial/registrar.py
@@ -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