[PATCH 1 of 2] py3: open extension source in binary mode to read docstring as bytes
Yuya Nishihara
yuya at tcha.org
Sun Jun 17 09:11:33 UTC 2018
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1529225952 -32400
# Sun Jun 17 17:59:12 2018 +0900
# Node ID 2c1d983872f6049c73be18d5d9da938b1d61f8fd
# Parent b8f45fc27370dc7df283c47f71927c10462197fb
py3: open extension source in binary mode to read docstring as bytes
diff --git a/mercurial/extensions.py b/mercurial/extensions.py
--- a/mercurial/extensions.py
+++ b/mercurial/extensions.py
@@ -605,7 +605,7 @@ def _moduledoc(file):
def _disabledhelp(path):
'''retrieve help synopsis of a disabled extension (without importing)'''
try:
- file = open(path)
+ file = open(path, 'rb')
except IOError:
return
else:
More information about the Mercurial-devel
mailing list