Patchwork D3989: ui: fix implicit unicode-to-bytes conversion introduced in 9df29b7c62cf

login
register
mail settings
Submitter phabricator
Date Aug. 1, 2018, 3:10 p.m.
Message ID <ac80a0dee2a0acea6eea6274ab2642d2@localhost.localdomain>
Download mbox | patch
Permalink /patch/32991/
State Not Applicable
Headers show

Comments

phabricator - Aug. 1, 2018, 3:10 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGeb2945f0a4a1: ui: fix implicit unicode-to-bytes conversion introduced in 9df29b7c62cf (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3989?vs=9679&id=9680

REVISION DETAIL
  https://phab.mercurial-scm.org/D3989

AFFECTED FILES
  mercurial/ui.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -392,7 +392,7 @@ 
     def readconfig(self, filename, root=None, trust=False,
                    sections=None, remap=None):
         try:
-            fp = open(filename, u'rb')
+            fp = open(filename, r'rb')
         except IOError:
             if not sections: # ignore unless we were looking for something
                 return