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

login
register
mail settings
Submitter Pulkit Goyal
Date Aug. 2, 2016, 8:27 p.m.
Message ID <87f5379c3685a9844fee.1470169652@pulkit-goyal>
Download mbox | patch
Permalink /patch/16049/
State Changes Requested
Headers show

Comments

Pulkit Goyal - Aug. 2, 2016, 8:27 p.m.
# HG changeset patch
# User Pulkit Goyal <7895pulkit@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.

Patch

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).