From patchwork Wed Aug 1 15:10:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D3989: ui: fix implicit unicode-to-bytes conversion introduced in 9df29b7c62cf From: phabricator X-Patchwork-Id: 32991 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Wed, 1 Aug 2018 15:10:58 +0000 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 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