Mercurial > public > mercurial-scm > hg-stable
diff mercurial/extensions.py @ 38349:2c1d983872f6
py3: open extension source in binary mode to read docstring as bytes
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 17 Jun 2018 17:59:12 +0900 |
parents | b39958d6b81b |
children | c6f82a18a63d |
line wrap: on
line diff
--- a/mercurial/extensions.py Wed Jun 13 16:22:54 2018 +0530 +++ b/mercurial/extensions.py Sun Jun 17 17:59:12 2018 +0900 @@ -605,7 +605,7 @@ def _disabledhelp(path): '''retrieve help synopsis of a disabled extension (without importing)''' try: - file = open(path) + file = open(path, 'rb') except IOError: return else: