diff mercurial/i18n.py @ 36835:5bc7ff103081

py3: use r'' instead of sysstr('') to get around code transformer Fewer function calls should be better.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 10 Mar 2018 15:57:16 +0900
parents aeaf9c7f7528
children 79dd61a4554f
line wrap: on
line diff
--- a/mercurial/i18n.py	Sat Mar 10 15:50:09 2018 +0900
+++ b/mercurial/i18n.py	Sat Mar 10 15:57:16 2018 +0900
@@ -50,7 +50,7 @@
 
 def setdatapath(datapath):
     datapath = pycompat.fsdecode(datapath)
-    localedir = os.path.join(datapath, pycompat.sysstr('locale'))
+    localedir = os.path.join(datapath, r'locale')
     t = gettextmod.translation(r'hg', localedir, _languages, fallback=True)
     global _ugettext
     try: