doc: omit useless _() invocation stable
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Mon, 01 Aug 2016 06:08:26 +0900
branchstable
changeset 29645 3b4d69b3988d
parent 29644 ce4ac5d19cb8
child 29646 a8a5dd8986f0
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.
mercurial/hg.py
--- a/mercurial/hg.py	Mon Aug 01 06:08:25 2016 +0900
+++ b/mercurial/hg.py	Mon Aug 01 06:08:26 2016 +0900
@@ -896,7 +896,7 @@
                         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()))