[PATCH 10 of 10] py3: use unicode literal in crecord.py

Pulkit Goyal 7895pulkit at gmail.com
Tue Aug 2 16:27:32 EDT 2016


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1470169311 -19800
#      Wed Aug 03 01:51:51 2016 +0530
# Node ID 87f5379c3685a9844feecfbcacb6cd0f8d448156
# Parent  bb24dfbbd410cd78646c43557c06475f9d252dd5
py3: use unicode literal in crecord.py

This series contains fixes related to the errors which were produced
at places where we need unicodes but the module loader changes that to bytes.

diff -r bb24dfbbd410 -r 87f5379c3685 mercurial/crecord.py
--- a/mercurial/crecord.py	Wed Aug 03 01:47:31 2016 +0530
+++ b/mercurial/crecord.py	Wed Aug 03 01:51:51 2016 +0530
@@ -28,7 +28,7 @@
 
 # This is required for ncurses to display non-ASCII characters in default user
 # locale encoding correctly.  --immerrr
-locale.setlocale(locale.LC_ALL, '')
+locale.setlocale(locale.LC_ALL, u'')
 
 # patch comments based on the git one
 diffhelptext = _("""# To remove '-' lines, make them ' ' lines (context).


More information about the Mercurial-devel mailing list