# HG changeset patch # User Yuya Nishihara # Date 1529225952 -32400 # Node ID 2c1d983872f6049c73be18d5d9da938b1d61f8fd # Parent b8f45fc27370dc7df283c47f71927c10462197fb py3: open extension source in binary mode to read docstring as bytes diff -r b8f45fc27370 -r 2c1d983872f6 mercurial/extensions.py --- 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: