changeset 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 b8f45fc27370
children c6f82a18a63d
files mercurial/extensions.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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: