Patchwork [3,of,4] py3: use unicode literals in crecord.py

login
register
mail settings
Submitter Pulkit Goyal
Date Aug. 3, 2016, 7:18 p.m.
Message ID <c1ff0bbf5d4827765987.1470251904@pulkit-goyal>
Download mbox | patch
Permalink /patch/16068/
State Accepted
Headers show

Comments

Pulkit Goyal - Aug. 3, 2016, 7:18 p.m.
# HG changeset patch
# User Pulkit Goyal <7895pulkit@gmail.com>
# Date 1470250274 -19800
#      Thu Aug 04 00:21:14 2016 +0530
# Branch stable
# Node ID c1ff0bbf5d48277659872d23bd73b122f5c9e250
# Parent  d05240139e452340f279f24887ce6721c0f38978
py3: use unicode literals in crecord.py

Patch

diff -r d05240139e45 -r c1ff0bbf5d48 mercurial/crecord.py
--- a/mercurial/crecord.py	Thu Aug 04 00:15:39 2016 +0530
+++ b/mercurial/crecord.py	Thu Aug 04 00:21:14 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).