Patchwork [2,of,6,STABLE] doc: omit useless _() invocation

login
register
mail settings
Submitter Katsunori FUJIWARA
Date July 31, 2016, 9:41 p.m.
Message ID <e1d879c97b9cb59ee828.1470001262@feefifofum>
Download mbox | patch
Permalink /patch/16012/
State Accepted
Headers show

Comments

Katsunori FUJIWARA - July 31, 2016, 9:41 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1469999306 -32400
#      Mon Aug 01 06:08:26 2016 +0900
# Branch stable
# Node ID e1d879c97b9cb59ee82805a0123f8e3653e2cd6e
# Parent  20b41351782f75045d9afb4e7987e7d697f240f7
doc: omit useless _() invocation

In this case, column positioning isn't needed for i18n, too.

Maybe, check-code warning "missing _() in ui message" caused this
useless _() invocation in 92d37fb3f1aa.

Patch

diff --git a/mercurial/hg.py b/mercurial/hg.py
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -896,7 +896,7 @@  def verify(repo):
                         ret = (ctx.sub(subpath, allowcreate=False).verify()
                                or ret)
                     except error.RepoError as e:
-                        repo.ui.warn(_('%s: %s\n') % (rev, e))
+                        repo.ui.warn(('%s: %s\n') % (rev, e))
             except Exception:
                 repo.ui.warn(_('.hgsubstate is corrupt in revision %s\n') %
                              node.short(ctx.node()))