changeset 36692:aeaf9c7f7528

py3: make gettext domain a system string
author Yuya Nishihara <yuya@tcha.org>
date Sat, 03 Mar 2018 19:12:47 -0500
parents 1b179d151578
children 19e859cad54c
files mercurial/i18n.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/i18n.py	Sun Mar 04 07:03:50 2018 -0500
+++ b/mercurial/i18n.py	Sat Mar 03 19:12:47 2018 -0500
@@ -51,7 +51,7 @@
 def setdatapath(datapath):
     datapath = pycompat.fsdecode(datapath)
     localedir = os.path.join(datapath, pycompat.sysstr('locale'))
-    t = gettextmod.translation('hg', localedir, _languages, fallback=True)
+    t = gettextmod.translation(r'hg', localedir, _languages, fallback=True)
     global _ugettext
     try:
         _ugettext = t.ugettext