Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/ui.py @ 38808:eb2945f0a4a1
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
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 19 Jul 2018 15:21:28 -0400 |
parents | fe3ca1e6f786 |
children | afc4ad706f9c |
comparison
equal
deleted
inserted
replaced
38807:813e726e5343 | 38808:eb2945f0a4a1 |
---|---|
390 return False | 390 return False |
391 | 391 |
392 def readconfig(self, filename, root=None, trust=False, | 392 def readconfig(self, filename, root=None, trust=False, |
393 sections=None, remap=None): | 393 sections=None, remap=None): |
394 try: | 394 try: |
395 fp = open(filename, u'rb') | 395 fp = open(filename, r'rb') |
396 except IOError: | 396 except IOError: |
397 if not sections: # ignore unless we were looking for something | 397 if not sections: # ignore unless we were looking for something |
398 return | 398 return |
399 raise | 399 raise |
400 | 400 |