# HG changeset patch # User Augie Fackler # Date 2018-07-19 19:21:28 # Node ID eb2945f0a4a1bb5561a0d773ce46695b68e48dda # Parent 813e726e5343689d4f94e3deecf2d68bfc22dc7c ui: fix implicit unicode-to-bytes conversion introduced in 9df29b7c62cf This is harmless, unless you try and run hg with HGUNICODEPEDANTRY enabled. It's technically wrong, so let's go ahead and fix it. Differential Revision: https://phab.mercurial-scm.org/D3989 diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -392,7 +392,7 @@ class ui(object): 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